From 0e9bab29f685c906be6704af9148e1b10d74cbfa Mon Sep 17 00:00:00 2001 From: BJRambo Date: Wed, 3 Feb 2021 11:43:34 +0900 Subject: [PATCH] Fix error in ncenterlite userconfig in PHP8.0 --- modules/ncenterlite/skins/default/userconfig.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ncenterlite/skins/default/userconfig.html b/modules/ncenterlite/skins/default/userconfig.html index c8b75f028..d5e53e39f 100644 --- a/modules/ncenterlite/skins/default/userconfig.html +++ b/modules/ncenterlite/skins/default/userconfig.html @@ -27,19 +27,19 @@
{@ $available = isset($module_config->use[$notify_type]['web']) && $module_config->use[$notify_type]['web'] !== 'N'} - {@ $selected = in_array('web', $uc[$notify_type])} + {@ $selected = (is_array($uc[$notify_type]) && in_array('web', $uc[$notify_type]))} {@ $available = isset($module_config->use[$notify_type]['mail']) && $module_config->use[$notify_type]['mail'] !== 'N'} - {@ $selected = in_array('mail', $uc[$notify_type])} + {@ $selected = (is_array($uc[$notify_type]) && in_array('mail', $uc[$notify_type]))} {@ $available = isset($module_config->use[$notify_type]['sms']) && $module_config->use[$notify_type]['sms'] !== 'N'} - {@ $selected = in_array('sms', $uc[$notify_type])} + {@ $selected = (is_array($uc[$notify_type]) && in_array('sms', $uc[$notify_type]))} {@ $available = isset($module_config->use[$notify_type]['push']) && $module_config->use[$notify_type]['push'] !== 'N'} - {@ $selected = in_array('push', $uc[$notify_type])} + {@ $selected = (is_array($uc[$notify_type]) && in_array('push', $uc[$notify_type]))}

{sprintf($lang->get('ncenterlite_' . $notify_type . '_noti_about'), $logged_info->nick_name)}