From: Vincent Vanwaelscappel Date: Fri, 16 Jan 2026 17:21:17 +0000 (+0100) Subject: #7894 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=587688dd6ee4f633cb8470f8c83eeb1d31d09e87;p=fluidbook_tools.git #7894 --- diff --git a/src/Links/Link.php b/src/Links/Link.php index 9e7ee09..fbc683d 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -144,6 +144,9 @@ class Link public $stats = []; public $visibility_os = 'all'; public $accessibility = false; + public $image_rollover; + public $origuid; + public $animate_area; protected $role = 'button'; public $name = ''; public $alt = ''; @@ -570,12 +573,12 @@ class Link 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)) { @@ -594,7 +597,9 @@ class Link } continue; } - $this->$k = $v; + if (property_exists($this, $k)) { + $this->$k = $v; + } } if (!$this->visibility_os) {