]> _ Git - cubeextranet.git/commitdiff
fix #3659 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 25 May 2020 11:20:02 +0000 (11:20 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 25 May 2020 11:20:02 +0000 (11:20 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index 87916f45d3d6385bee09d3f5532bbf5fe0d42b29..e640d61b9a2563f5f864755bf4214b48f337cd51 100644 (file)
@@ -686,9 +686,11 @@ class contentLink extends wsHTML5Link
         $res = parent::getAdditionnalContent();
         $variables = self::parseAnimation($this->image_rollover);
 
-        if (isset($variables['type'])) {
-            $res .= ' data-animation-type="' . $variables['type'] . '" data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" ';
+        if (!isset($variables['type']) || !$variables['type']) {
+            $variables['type'] = 'none';
         }
+        $res .= ' data-animation-type="' . $variables['type'] . '" data-animation="' . htmlspecialchars(json_encode($variables), ENT_QUOTES) . '" ';
+
 
         return $res;
     }