From f49fdf4e1c80fe5bde922c25bdd6ca0e2c912ddb Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 21:32:54 +0000 Subject: Refs #2124: Using get_loggedin_user functions instead of $vars['user'], $_SESSION['user'], etc. git-svn-id: http://code.elgg.org/elgg/trunk@7139 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/reportedcontent/actions/add.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/reportedcontent/actions/add.php') diff --git a/mod/reportedcontent/actions/add.php b/mod/reportedcontent/actions/add.php index 6e86c4cf6..0611f7402 100644 --- a/mod/reportedcontent/actions/add.php +++ b/mod/reportedcontent/actions/add.php @@ -15,7 +15,7 @@ $report = new ElggObject; $report->subtype = "reported_content"; - $report->owner_guid = $_SESSION['user']->getGUID(); + $report->owner_guid = get_loggedin_userid(); $report->title = $title; $report->address = $address; $report->description = $description; -- cgit v1.2.3