Fix warnings in PHP 8.0

This commit is contained in:
Kijin Sung 2021-02-07 15:29:28 +09:00
parent 2cf2ce2d67
commit ebe806f7a5
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class commentItem extends BaseObject
*/
function setAttribute($attribute)
{
if(!$attribute->comment_srl)
if(!is_object($attribute) || !$attribute->comment_srl)
{
$this->comment_srl = NULL;
return;

View file

@ -140,7 +140,7 @@ class documentItem extends BaseObject
function setAttribute($attribute, $load_extra_vars = true)
{
if(!$attribute->document_srl)
if(!is_object($attribute) || !$attribute->document_srl)
{
$this->document_srl = null;
return;