forked from GNUsocial/gnu-social
fix notice in searchaction
This commit is contained in:
parent
a76099c59b
commit
d5bf7e5cfb
@ -79,10 +79,11 @@ class SearchAction extends Action
|
|||||||
|
|
||||||
function showTop($arr=null)
|
function showTop($arr=null)
|
||||||
{
|
{
|
||||||
|
$error = null;
|
||||||
if ($arr) {
|
if ($arr) {
|
||||||
$error = $arr[1];
|
$error = $arr[1];
|
||||||
}
|
}
|
||||||
if ($error) {
|
if (!empty($error)) {
|
||||||
$this->element('p', 'error', $error);
|
$this->element('p', 'error', $error);
|
||||||
} else {
|
} else {
|
||||||
$instr = $this->getInstructions();
|
$instr = $this->getInstructions();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user