aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 16:24:19 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 16:24:19 +0000
commit3754160dc9be4a5ef6240ac378d12bd57bb1ae3b (patch)
tree82748ef02a8aacc662ee1327289f52a99cf09c67 /engine/lib/sites.php
parent657ae7c449d85904d7f017c89e08d45d78fe397b (diff)
downloadelgg-3754160dc9be4a5ef6240ac378d12bd57bb1ae3b.tar.gz
elgg-3754160dc9be4a5ef6240ac378d12bd57bb1ae3b.tar.bz2
Fixing access permissions error on site update
git-svn-id: https://code.elgg.org/elgg/trunk@142 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index f78449920..207faa2ef 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -610,7 +610,7 @@
$access = get_access_list();
- return update_data("UPDATE {$CONFIG->dbprefix}sites set name='$title', description='$description', url='$url', last_updated='$time', owner_id=$owner_id, access_id=$access_id WHERE id=$id and (access_id in {$access} or (access_id = 0 and owner_id = {$_SESSION['id']}))");
+ return update_data("UPDATE {$CONFIG->dbprefix}sites set name='$title', description='$description', url='$url', last_updated='$time', owner_id=$owner_id, access_id=$access_id WHERE id=$id and owner_id = {$_SESSION['id']}");
}
/**