[fix] warning in search form when empty via field

This commit is contained in:
Knah Tsaeb 2014-01-03 09:39:02 +01:00
parent 4123658eae
commit f1a8ca9cc8
1 changed files with 5 additions and 5 deletions

View File

@ -798,7 +798,7 @@ class linkdb implements Iterator, Countable, ArrayAccess
|| (strpos(strtolower($l['description']),$s)!==false)
|| (strpos(strtolower($l['url']),$s)!==false)
|| (strpos(strtolower($l['tags']),$s)!==false)
|| (strpos(strtolower($l['via']),$s)!==false);
|| (!empty($l['via']) && (strpos(strtolower($l['via']),$s)!==false));
if ($found) $filtered[$l['linkdate']] = $l;
}
krsort($filtered);