fix notice in searchaction

This commit is contained in:
Evan Prodromou 2009-02-20 16:51:39 -05:00
parent a76099c59b
commit d5bf7e5cfb

View 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();