BUG before use object's property check it to make sure it is not NULL.

This commit is contained in:
Normann Lou 2013-11-15 16:18:11 +13:00
parent d64fe9ba13
commit 98d614f14a

View File

@ -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;