mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
commit
20c6cbc851
@ -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