From: Evan Prodromou Date: Fri, 20 Feb 2009 21:51:39 +0000 (-0500) Subject: fix notice in searchaction X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d5bf7e5cfb4b4de335cafec69d93c565e0c9d2f4;p=quix0rs-gnu-social.git fix notice in searchaction --- diff --git a/lib/searchaction.php b/lib/searchaction.php index fdfb8dc5ad..df68764459 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();