From 82869352cc8cba062dea982a911aafffc24e9cd4 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:36:19 +0100
Subject: [PATCH] Fix a php7 bug

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

diff --git a/lib/exe/css.php b/lib/exe/css.php
index 40eaf99a6..52a29dbc2 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -76,7 +76,7 @@ function css_out(){
             $files = array_merge($files, $styleini['stylesheets'][$mediatype]);
         }
         // load user styles
-        if(!empty($config_cascade['userstyle'][$mediatype])) {
+        if(is_array($config_cascade['userstyle'][$mediatype]) && count($config_cascade['userstyle'][$mediatype])>0) {
             foreach($config_cascade['userstyle'][$mediatype] as $userstyle) {
                 $files[$userstyle] = DOKU_BASE;
             }
-- 
GitLab