Fix PHP warnings due to unitiated variables #1866 thanks to @Erictoby

This commit is contained in:
Kijin Sung 2022-02-04 01:41:56 +09:00
parent 70cfe24cdd
commit 7e82d37cfa
11 changed files with 54 additions and 51 deletions

View file

@ -204,7 +204,7 @@ class documentItem extends BaseObject
}
$logged_info = Context::get('logged_info');
if (!$logged_info->member_srl)
if (!$logged_info || !$logged_info->member_srl)
{
return $this->grant_cache = false;
}