diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-02-20 16:51:39 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-02-20 16:51:39 -0500 |
commit | d5bf7e5cfb4b4de335cafec69d93c565e0c9d2f4 (patch) | |
tree | ad261044c513c5f32667250c4714adbc694b8eb5 /lib/searchaction.php | |
parent | a76099c59b616004886e3c7add06db1de53e4acf (diff) |
fix notice in searchaction
Diffstat (limited to 'lib/searchaction.php')
-rw-r--r-- | lib/searchaction.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/searchaction.php b/lib/searchaction.php index fdfb8dc5a..df6876445 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -79,10 +79,11 @@ class SearchAction extends Action function showTop($arr=null) { + $error = null; if ($arr) { $error = $arr[1]; } - if ($error) { + if (!empty($error)) { $this->element('p', 'error', $error); } else { $instr = $this->getInstructions(); |