diff --git a/index.php b/index.php index 5ec6d03..efd01a5 100644 --- a/index.php +++ b/index.php @@ -805,7 +805,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);