From 419456e78410bfbedbcbe28686c0d087f7f166f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerry=20Wei=C3=9Fbach?= Date: Wed, 5 Aug 2020 12:41:36 +0200 Subject: [PATCH] Move Check and Count --- action.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action.php b/action.php index 9d4ef40..a9f9194 100644 --- a/action.php +++ b/action.php @@ -56,13 +56,12 @@ function metaheaders(Doku_Event $event, $param) { $headerconf = DOKU_CONF.'metaheaders.conf.php'; - if (@file_exists($headerconf) && is_array($clear)) { + if (@file_exists($headerconf)) { require_once($headerconf); - $nclear = count($clear); if (!empty($clear)) { - + $nclear = count($clear); foreach( $head as $outerType => $list ) { $nlink = count($list);