From 98d614f14af4e9148be5467504682690171ffc7f Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Fri, 15 Nov 2013 16:18:11 +1300 Subject: [PATCH] BUG before use object's property check it to make sure it is not NULL. --- code/DMSDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/DMSDocument.php b/code/DMSDocument.php index 4de0f74..7573c55 100755 --- a/code/DMSDocument.php +++ b/code/DMSDocument.php @@ -45,7 +45,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { if(!min($results)) return false; } - if($member->ID){ + if($member && $member->ID){ return true; } return false;