fix not working preferences GUI after ddddc5ba05

This commit is contained in:
Ralf Becker 2021-10-07 17:28:06 +02:00
parent a8d14ffa0a
commit 460d8cbe0d

View File

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