mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #256 from madmatt/pulls/fix-null-dataquery
Fix error when dataQuery is a null object
This commit is contained in:
commit
b8667fb933
@ -33,7 +33,7 @@ class SiteTreeSubsites extends DataExtension
|
|||||||
if (Subsite::$disable_subsite_filter) {
|
if (Subsite::$disable_subsite_filter) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($dataQuery->getQueryParam('Subsite.filter') === false) {
|
if ($dataQuery && $dataQuery->getQueryParam('Subsite.filter') === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user