diff --git a/entitycache.module b/entitycache.module index 3d05425..9714e97 100644 --- a/entitycache.module +++ b/entitycache.module @@ -104,7 +104,7 @@ class EntityCacheControllerHelper extends DrupalDefaultEntityController { // In case we passed no IDs, but static loading by $conditions worked // ($entities is set), we don't want to query again. (!$passed_ids && !$entities))) { - $query = (new EntityFieldQuery()); + $query = new EntityFieldQuery(); $query->entityCondition('entity_type', $controller->entityType); foreach ($conditions as $property_name => $condition) { // Note $condition might be multiple values, which are treated as OR