aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/group.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-22 16:21:33 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-22 16:21:33 +0000
commitf4efcff4412723c25ad91916e47219328af99d2e (patch)
treed68d714c00128901e59ff1c9837044a83346bba1 /engine/lib/group.php
parentaaf2027a090954779a563d2581817490df685cb1 (diff)
downloadelgg-f4efcff4412723c25ad91916e47219328af99d2e.tar.gz
elgg-f4efcff4412723c25ad91916e47219328af99d2e.tar.bz2
More owner_guid to container_guid transfer
git-svn-id: https://code.elgg.org/elgg/trunk@1494 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r--engine/lib/group.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php
index 40bf7a674..d4de615de 100644
--- a/engine/lib/group.php
+++ b/engine/lib/group.php
@@ -540,12 +540,12 @@
if ($owner_guid != "") {
if (!is_array($owner_guid)) {
$owner_guid = (int) $owner_guid;
- $where[] = "e.owner_guid = '$owner_guid'";
+ $where[] = "e.container_guid = '$owner_guid'";
} else if (sizeof($owner_guid) > 0) {
// Cast every element to the owner_guid array to int
$owner_guid = array_map("sanitise_int", $owner_guid);
$owner_guid = implode(",",$owner_guid);
- $where[] = "e.owner_guid in ({$owner_guid})";
+ $where[] = "e.container_guid in ({$owner_guid})";
}
}
if ($site_guid > 0)
@@ -633,9 +633,9 @@
if ($container_guid > 0)
$where[] = "e.container_guid = {$container_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.* ";