]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6115 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jul 2023 16:07:04 +0000 (18:07 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jul 2023 16:07:04 +0000 (18:07 +0200)
app/Fluidbook/Compiler/Links.php

index 8bf55b8f1139479c64e2cf6422e8d0818184e8a6..4a278944589ee173be0160551abb74d0e65d58fa 100644 (file)
@@ -179,7 +179,7 @@ trait Links
             }
             if ($linkData['type'] == Link::TEXT || $linkData['type'] == Link::IMAGE || $linkData['type'] == Link::LAYER) {
                 $linkData = Link::decryptLink($linkData);
-                $animations = ContentLink::parseAnimations($linkData['image_rollover']);
+                $animations = ContentLink::parseAnimations($linkData['image_rollover'] ?? 'none');
                 foreach ($animations as $animation) {
                     if (isset($animation['backgroundcolor']) && $animation['backgroundcolor'] !== 'transparent') {
                         $dupData = $linkData;