summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-03-06 23:19:19 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-03-06 23:19:19 +0000
commit49f299d6a332f8755f3b7a20c414702cca9c5ab8 (patch)
treedc75ec64e8c82a075c4dc91cc475b06587933d65 /inc/search.php
parentb7a3421a21dcfafa93505b980de9f1cf8fd3532e (diff)
downloadrpg-49f299d6a332f8755f3b7a20c414702cca9c5ab8.tar.gz
rpg-49f299d6a332f8755f3b7a20c414702cca9c5ab8.tar.bz2
another instance of empty() where an array key might not exist
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php
index 21666b3fd..be4710237 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -353,7 +353,7 @@ function search_universal(&$data,$base,$file,$type,$lvl,$opts){
// get ID and check if it is a valid one
$item['id'] = pathID($file,($type == 'd' || !empty($opts['keeptxt'])));
if($item['id'] != cleanID($item['id'])){
- if($opts['showmsg']){
+ if(!empty($opts['showmsg'])){
msg(hsc($item['id']).' is not a valid file name for DokuWiki - skipped',-1);
}
return false; // skip non-valid files