summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-19 19:22:21 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-19 19:22:21 +0000
commit563df90c75d6615ea491cba6cb0b97010bac3af0 (patch)
treede5419ee89d3586b20c1788513c2f12eb4fbea14 /src/SemanticScuttle/Service
parentc93455201a37961cdf978c8505e21dbfc64b5974 (diff)
downloadsemanticscuttle-563df90c75d6615ea491cba6cb0b97010bac3af0.tar.gz
semanticscuttle-563df90c75d6615ea491cba6cb0b97010bac3af0.tar.bz2
fix notice when passing an invalid array to editAllowed()
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@558 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/Service')
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php
index afc4c89..b0ffbac 100644
--- a/src/SemanticScuttle/Service/Bookmark.php
+++ b/src/SemanticScuttle/Service/Bookmark.php
@@ -206,8 +206,11 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
*/
function editAllowed($bookmark)
{
- if (!is_numeric($bookmark) && (!is_array($bookmark)
- || !is_numeric($bookmark['bId']))
+ if (!is_numeric($bookmark)
+ && (!is_array($bookmark)
+ || !isset($bookmark['bId'])
+ || !is_numeric($bookmark['bId'])
+ )
) {
return false;
}