From bfb331611d6a4fbb09e3b4a2eb8425a61445dd30 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 18 May 2009 11:49:47 +0000 Subject: Closes #1025: Using the correct variable. git-svn-id: https://code.elgg.org/elgg/trunk@3294 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3