diff options
-rw-r--r-- | services/bookmarkservice.php | 2 |
1 files changed, 2 insertions, 0 deletions
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 |