Fix #1490 error in PHP 8.0

This commit is contained in:
Kijin Sung 2020-12-16 20:37:23 +09:00
parent 2de3bbcea7
commit bfce45e611

View file

@ -84,8 +84,8 @@ class documentView extends document
if(!Context::get('is_logged')) throw new Rhymix\Framework\Exceptions\NotPermitted;
// Taken from a list of selected sessions
$document_srl_list = array();
$flag_list = $_SESSION['document_management'];
if(count($flag_list))
$flag_list = $_SESSION['document_management'] ?? [];
if(is_array($flag_list) && count($flag_list))
{
foreach($flag_list as $key => $val)
{