From aead15121788fb48a6634971455cbee3baa92e33 Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 27 Feb 2009 09:01:19 +0000 Subject: [PATCH] Minor fix: correct bug in editallowed() for some servers' configurations git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@299 b3834d28-1941-0410-a4f8-b48e95affb8f --- services/bookmarkservice.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/bookmarkservice.php b/services/bookmarkservice.php index dd23d93..55562e2 100644 --- a/services/bookmarkservice.php +++ b/services/bookmarkservice.php @@ -107,6 +107,8 @@ class BookmarkService { $userservice = & ServiceFactory :: getServiceInstance('UserService'); $userid = $userservice->getCurrentUserId(); + if(!is_numeric($userid)) + return false; // useful for few servers configuration (see brunaud bugs) if ($GLOBALS['adminsCanModifyBookmarksFromOtherUsers'] && $userservice->isAdmin($userid)) return true; else