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;