mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUG before use object's property check it to make sure it is not NULL.
This commit is contained in:
parent
d64fe9ba13
commit
98d614f14a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user