]> _ Git - fluidbook_tools.git/commitdiff
#7894
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Jan 2026 17:21:17 +0000 (18:21 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Jan 2026 17:21:17 +0000 (18:21 +0100)
src/Links/Link.php

index 9e7ee092fe22747ed68945a556956ba2038814b8..fbc683de3993f28ce2b46fba9a8123514f8dd009 100644 (file)
@@ -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) {