mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
redoing bugfix 7b11e979fa
removed by cac77703
This commit is contained in:
parent
ebebff248f
commit
94edb694b7
@ -66,7 +66,7 @@ class FileSubsites extends DataExtension {
|
||||
$from = $query->getFrom();
|
||||
$where = $query->getWhere();
|
||||
|
||||
if(!isset($from['SiteTree_ImageTracking']) && !($where && preg_match('/\.(\'|"|`|)ID(\'|"|`|)/', $where[0]))) {
|
||||
if(!isset($from['SiteTree_ImageTracking']) && !($where && preg_match('/\.(\'|"|`|)ID(\'|"|`|)/', implode(' ', $where)))) {
|
||||
$subsiteID = (int) Subsite::currentSubsiteID();
|
||||
|
||||
// The foreach is an ugly way of getting the first key :-)
|
||||
|
Loading…
Reference in New Issue
Block a user