Fix various warnings in PHP 8.0

This commit is contained in:
Kijin Sung 2021-06-20 22:25:16 +09:00
parent 664a68fc2a
commit 786dace639
8 changed files with 47 additions and 41 deletions

View file

@ -430,7 +430,7 @@ class widgetController extends widget
$cache_content->variables = new stdClass();
foreach($widget_var_matches as $matches)
{
if($matches[2])
if(isset($matches[2]) && $matches[2])
{
$key = str_replace('?$__Context->', '', $matches[2]);
$cache_content->variables->{$key} = Context::get($key);