mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge pull request #40 from normann/master
BUG before use object's property check to make sure it is not NULL.
This commit is contained in:
commit
6497b1993d
@ -45,7 +45,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
|||||||
if(!min($results)) return false;
|
if(!min($results)) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($member->ID){
|
if($member && $member->ID){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user