aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/access.php')
-rw-r--r--engine/lib/access.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index 45aa49962..aace86335 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -345,7 +345,7 @@ END;
$name = trim($name);
if (empty($name)) return false;
- if ($user_id == 0) $user_id = get_loggedin_userid();
+ if ($owner_guid == 0) $owner_guid = get_loggedin_userid();
if (($site_id == 0) && (isset($CONFIG->site_guid))) $site_id = $CONFIG->site_guid;
$name = sanitise_string($name);