aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 52c01c5e8..baa02b682 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -491,9 +491,9 @@
if ($site_guid > 0)
$where[] = "e.site_guid = {$site_guid}";
if (is_array($owner_guid)) {
- $where[] = "e.owner_guid in (".implode(",",$owner_guid).")";
+ $where[] = "e.container_guid in (".implode(",",$owner_guid).")";
} else if ($owner_guid > 0)
- $where[] = "e.owner_guid = {$owner_guid}";
+ $where[] = "e.container_guid = {$owner_guid}";
if (!$count) {
$query = "SELECT distinct e.* ";