diff options
author | Christian Weiske | 2010-08-12 20:49:35 +0200 |
---|---|---|
committer | Christian Weiske | 2010-08-12 20:49:35 +0200 |
commit | 0a8dadf87e660e9bf205581f12f7af87bfabf6ca (patch) | |
tree | a1218f869401a1ffff764a58c28a0be674ba5362 /www/bookmarks.php | |
parent | b25290cef48251a31cb0f693a53677b566c1b1a4 (diff) | |
parent | 31570df64ce6543de407e7b9d751ba9033d930de (diff) | |
download | scuttle-0a8dadf87e660e9bf205581f12f7af87bfabf6ca.tar.gz scuttle-0a8dadf87e660e9bf205581f12f7af87bfabf6ca.zip |
Merge branch 'master' into pearpkg
Diffstat (limited to 'www/bookmarks.php')
-rw-r--r-- | www/bookmarks.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/bookmarks.php b/www/bookmarks.php index e356750..5241481 100644 --- a/www/bookmarks.php +++ b/www/bookmarks.php @@ -134,7 +134,7 @@ if ($userservice->isLoggedOn() && POST_SUBMITTED != '') { $address = trim(POST_ADDRESS); // If the bookmark exists already, edit the original if ($bookmarkservice->bookmarkExists($address, $currentUserID)) { - $bookmark =& $bookmarkservice->getBookmarkByAddress($address); + $bookmark = $bookmarkservice->getBookmarkByAddress($address); header('Location: '. createURL('edit', $bookmark['bId'])); exit(); // If it's new, save it @@ -167,7 +167,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, md5($bookmarkservice->normalize(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(); |