From a3aeea3f16f9da6a56f1af8cc1da50c6105b9e0d Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 25 May 2020 11:20:02 +0000 Subject: [PATCH] fix #3659 @0.5 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 87916f45d..e640d61b9 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -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; } -- 2.39.5