]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix notice in searchaction
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 21:51:39 +0000 (16:51 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 21:51:39 +0000 (16:51 -0500)
lib/searchaction.php

index fdfb8dc5adac4cc57378b9665c9d0744907a8d5a..df6876445992b8c3838f5c3a51d660dc746805b4 100644 (file)
@@ -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();