Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Upgrade Notes

## 5.1.3
- [BUGFIX] prevent applying str_contains on null value
## 5.1.2
- [BUBGFIX] fixed object preview button
- [BUGFIX] fixed object preview button
## 5.1.1
- [IMPROVEMENT] alternate route event: getter for current route item
## 5.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/ZoneSitesBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ protected function createSubSites(

$childCountryIso = Definitions::INTERNATIONAL_COUNTRY_NAMESPACE;

if (str_contains($childDocLocale, '_')) {
if (!is_null($childDocLocale) && str_contains($childDocLocale, '_')) {
$parts = explode('_', $childDocLocale);
if (!empty($parts[1])) {
$childCountryIso = $parts[1];
Expand Down
Loading