redoing bugfix 7b11e979fa removed by cac77703

This commit is contained in:
John Milmine 2015-02-12 08:14:49 +13:00
parent ebebff248f
commit 94edb694b7

View File

@ -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 :-)