diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-05 22:04:14 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-05 22:04:14 +0000 |
commit | f87b5dbbbad408da775ac4c60ceb9f9666280527 (patch) | |
tree | 53e023772e7ebeb53bad6f13e867483bbed6a683 /inc/search.php | |
parent | 6d2af55dde922ac10a288b4195b1bf338e7bc5a9 (diff) | |
download | rpg-f87b5dbbbad408da775ac4c60ceb9f9666280527.tar.gz rpg-f87b5dbbbad408da775ac4c60ceb9f9666280527.tar.bz2 |
use isset() + ?: or error suppression where value may not be set
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php index 840f70375..ee4eef534 100644 --- a/inc/search.php +++ b/inc/search.php @@ -351,7 +351,7 @@ function search_universal(&$data,$base,$file,$type,$lvl,$opts){ $return = true; // get ID and check if it is a valid one - $item['id'] = pathID($file,($type == 'd' || $opts['keeptxt'])); + $item['id'] = pathID($file,($type == 'd' || @$opts['keeptxt'])); if($item['id'] != cleanID($item['id'])){ if($opts['showmsg']) msg(hsc($item['id']).' is not a valid file name for DokuWiki - skipped',-1); |