From: stephen@cubedesigners.com Date: Wed, 4 Aug 2021 15:45:13 +0000 (+0000) Subject: Prevent unnecessary warnings in error logs. Done #4639 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3452c597625f2d37d50932cd0c29e510c9b20a8d;p=cubeextranet.git Prevent unnecessary warnings in error logs. Done #4639 @0:05 --- 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 dfbf49144..51df5a859 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -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; } }