diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-02-22 17:03:41 -0800 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-02-22 17:03:41 -0800 |
commit | 8e0508dad3bb888b0c01834614b1aa7e16cfe583 (patch) | |
tree | 04f2734597377942fbbfc5b4f133e951ccc645a5 /lib/searchaction.php | |
parent | cdab8d55a96b61ce6cfbec697d95e3223751fd3f (diff) | |
parent | da532bae9131b6dec8f5c0d67ce77c4ad1736f7d (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
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(); |