mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix warnings in PHP 8.0
This commit is contained in:
parent
2cf2ce2d67
commit
ebe806f7a5
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue