]> _ Git - cubeextranet.git/commitdiff
Prevent unnecessary warnings in error logs. Done #4639 @0:05
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Aug 2021 15:45:13 +0000 (15:45 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 4 Aug 2021 15:45:13 +0000 (15:45 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index dfbf49144fce932413b6acc4adbfa94c6c29e3ec..51df5a85910113b50485f6924afd55b30a3c878b 100644 (file)
@@ -987,7 +987,7 @@ class contentLink extends wsHTML5Link
     {
         $hiddenAnimations = ['fadeout', 'unmask'];
         foreach ($animations as $animation) {
-            if (in_array($animation['type'], $hiddenAnimations)) {
+            if (isset($animation['type']) && in_array($animation['type'], $hiddenAnimations)) {
                 return true;
             }
         }
@@ -998,7 +998,7 @@ class contentLink extends wsHTML5Link
     {
         $hiddenAnimations = ['reveal', 'fadein', 'translatefrom'];
         foreach ($animations as $animation) {
-            if (in_array($animation['type'], $hiddenAnimations)) {
+            if (isset($animation['type']) && in_array($animation['type'], $hiddenAnimations)) {
                 return true;
             }
         }