From 85e2ccd942fc67944c9324e71097f426abf75a01 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 20 Mar 2013 20:00:25 +0100 Subject: remove php4-style object reference passing #2 --- www/bookmarks.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'www/bookmarks.php') diff --git a/www/bookmarks.php b/www/bookmarks.php index fe12310..bf06fb6 100644 --- a/www/bookmarks.php +++ b/www/bookmarks.php @@ -100,7 +100,7 @@ if ($user) { $templateservice->loadTemplate('error.404.tpl', $tplVars); exit(); } else { - $userid =& $userinfo['uId']; + $userid = $userinfo['uId']; } } $pagetitle .= ': '. $user; @@ -173,7 +173,7 @@ if ($userservice->isLoggedOn() && POST_SUBMITTED != '') { if (GET_ACTION == "add") { // If the bookmark exists already, edit the original if ($bookmarkservice->bookmarkExists(stripslashes(GET_ADDRESS), $currentUserID)) { - $bookmark =& $bookmarkservice->getBookmarks(0, NULL, $currentUserID, NULL, NULL, NULL, NULL, NULL, NULL, $bookmarkservice->getHash(stripslashes(GET_ADDRESS))); + $bookmark = $bookmarkservice->getBookmarks(0, NULL, $currentUserID, NULL, NULL, NULL, NULL, NULL, NULL, $bookmarkservice->getHash(stripslashes(GET_ADDRESS))); $popup = (GET_POPUP!='') ? '?popup=1' : ''; header('Location: '. createURL('edit', $bookmark['bookmarks'][0]['bId'] . $popup)); exit(); @@ -250,7 +250,7 @@ if ($templatename == 'editbookmark.tpl') { //$tplVars['sidebar_blocks'][] = 'popular'; $tplVars['userid'] = $userid; - $tplVars['userinfo'] =& $userinfo; + $tplVars['userinfo'] = $userinfo; $tplVars['user'] = $user; $tplVars['range'] = 'user'; @@ -296,9 +296,9 @@ if ($templatename == 'editbookmark.tpl') { $tplVars['start'] = $start; $tplVars['bookmarkCount'] = $start + 1; - $bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, $userid, $cat, null, getSortOrder()); + $bookmarks = $bookmarkservice->getBookmarks($start, $perpage, $userid, $cat, null, getSortOrder()); $tplVars['total'] = $bookmarks['total']; - $tplVars['bookmarks'] =& $bookmarks['bookmarks']; + $tplVars['bookmarks'] = $bookmarks['bookmarks']; $tplVars['cat_url'] = createURL('bookmarks', '%s/%s'); $tplVars['nav_url'] = createURL('bookmarks', '%s/%s%s'); if ($userservice->isLoggedOn() && $user == $currentUsername) { -- cgit v1.2.3-54-g00ecf