fix not working preferences GUI after ddddc5ba05

This commit is contained in:
Ralf Becker 2021-10-07 17:28:06 +02:00
parent a599f9390c
commit 7525a9b186

View File

@ -50,7 +50,7 @@ class Box extends Etemplate\Widget
$old_expand = $params[1];
if ($this->id && $this->type != 'groupbox') $cname = self::form_name($cname, $this->id, $params[1]);
if (!empty($expand['cname']) && $expand['cname'] !== $cname && trim($cname))
if (($expand['cname'] ?? null) !== $cname && trim($cname))
{
$expand['cont'] =& self::get_array(self::$request->content, $cname);
$expand['cname'] = $cname;