mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Fix warning in PHP8.0
This commit is contained in:
parent
ce694e179c
commit
c7f84a178d
4 changed files with 9 additions and 5 deletions
|
|
@ -1070,10 +1070,10 @@ class ncenterliteController extends ncenterlite
|
|||
}
|
||||
|
||||
$_latest_notify_id = array_slice($_output->data, 0, 1);
|
||||
$_latest_notify_id = $_latest_notify_id[0]->notify;
|
||||
$_latest_notify_id = count($_latest_notify_id) > 0 ? $_latest_notify_id[0]->notify : "";
|
||||
Context::set('ncenterlite_latest_notify_id', $_latest_notify_id);
|
||||
|
||||
if($_COOKIE['_ncenterlite_hide_id'] && $_COOKIE['_ncenterlite_hide_id'] == $_latest_notify_id)
|
||||
if(isset($_COOKIE['_ncenterlite_hide_id']) && $_COOKIE['_ncenterlite_hide_id'] == $_latest_notify_id)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue