aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-19 15:17:17 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-19 15:17:17 +0000
commitd3384c02c0a69acfbdbd9d8d73f8b477e0691713 (patch)
tree58bedaaa45aa6a6ca95a70e1e1b0793442ba9013 /engine/lib
parent2c760856db924868e8fdaac4e3442bbfeb073c1c (diff)
downloadelgg-d3384c02c0a69acfbdbd9d8d73f8b477e0691713.tar.gz
elgg-d3384c02c0a69acfbdbd9d8d73f8b477e0691713.tar.bz2
Fixes #1519: Corrected site_guid in create_access_collection().
git-svn-id: http://code.elgg.org/elgg/trunk@3949 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/access.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index d9c241e7a..a626bae7e 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -413,15 +413,15 @@ function create_access_collection($name, $owner_guid = 0, $site_guid = 0) {
if ($owner_guid == 0) {
$owner_guid = get_loggedin_userid();
}
- if (($site_id == 0) && (isset($CONFIG->site_guid))) {
- $site_id = $CONFIG->site_guid;
+ if (($site_guid == 0) && (isset($CONFIG->site_guid))) {
+ $site_guid = $CONFIG->site_guid;
}
$name = sanitise_string($name);
$q = "INSERT INTO {$CONFIG->dbprefix}access_collections
SET name = '{$name}',
owner_guid = {$owner_guid},
- site_guid = {$site_id}";
+ site_guid = {$site_guid}";
if (!$id = insert_data($q)) {
return false;
}