Fix miscellaneous errors in PHP 8.0

https://xetown.com/questions/1494606
This commit is contained in:
Kijin Sung 2020-12-21 01:01:26 +09:00
parent 7e54b3add5
commit 198bb1b079
4 changed files with 14 additions and 6 deletions

View file

@ -67,6 +67,14 @@ class spamfilterAdminController extends spamfilter
// Get updated values
$vars = Context::getRequestVars();
if (!isset($vars->target_devices) || !is_array($vars->target_devices))
{
$vars->target_devices = [];
}
if (!isset($vars->target_actions) || !is_array($vars->target_actions))
{
$vars->target_actions = [];
}
// Check values
if (!isset($config->captcha))