From f97f7cdc4026d3a9c15666b19132d13df6ba53f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Csaba=20T=C3=B3th?= <csaba.toth@i3rendszerhaz.hu>
Date: Tue, 4 Dec 2018 12:37:25 +0100
Subject: [PATCH] php7 fix

php7 syntax fix.
https://forum.dokuwiki.org/thread/15725
https://forum.dokuwiki.org/post/58606
---
 lib/exe/js.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/exe/js.php b/lib/exe/js.php
index 7b76efabb..52af4feb0 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -66,7 +66,7 @@ function js_out(){
 
     // add possible plugin scripts and userscript
     $files   = array_merge($files,js_pluginscripts());
-    if(!empty($config_cascade['userscript']['default'])) {
+    if(is_array($config_cascade['userscript']['default']) && count($config_cascade['userscript']['default'])>0) {
         foreach($config_cascade['userscript']['default'] as $userscript) {
             $files[] = $userscript;
         }
-- 
GitLab