public $stats = [];
public $visibility_os = 'all';
public $accessibility = false;
+ public $image_rollover;
+ public $origuid;
+ public $animate_area;
protected $role = 'button';
public $name = '';
public $alt = '';
if ($k == 'extra') {
if (Json::isJson($v)) {
$v = Json::decode($v);
- } else if (str_contains($v, '=') && str_contains($v, '&')) {
+ } else if (null !== $v && str_contains($v, '=') && str_contains($v, '&')) {
$vv = $v;
$v = [];
parse_str($vv, $v);
$v = ObjectUtil::asObject($v);
- } else if (str_contains($v, '=')) {
+ } else if (null !== $v && str_contains($v, '=')) {
$extras = self::parseExtras($v);
foreach ($extras as $extrak => $extrav) {
if (!in_array($extrak, $ignoreExtraKeys)) {
}
continue;
}
- $this->$k = $v;
+ if (property_exists($this, $k)) {
+ $this->$k = $v;
+ }
}
if (!$this->visibility_os) {