mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
redoing bugfix 7b11e979fad46e5493ced136749e5620c6d30997 removed by cac77703
This commit is contained in:
parent
ebebff248f
commit
94edb694b7
@ -66,7 +66,7 @@ class FileSubsites extends DataExtension {
|
|||||||
$from = $query->getFrom();
|
$from = $query->getFrom();
|
||||||
$where = $query->getWhere();
|
$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();
|
$subsiteID = (int) Subsite::currentSubsiteID();
|
||||||
|
|
||||||
// The foreach is an ugly way of getting the first key :-)
|
// The foreach is an ugly way of getting the first key :-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user