Commit 7fcbb143 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Es wird kein "site:" mehr an Suchen ohne Sitesearch angehängt

parent 08037fad
......@@ -64,7 +64,10 @@ abstract class Searchengine
$q = "";
if( isset($this->hasSiteSearch) && $this->hasSiteSearch === "1")
{
$q = $metager->getQ() . " site:" . $metager->getSite();
if(strlen($metager->getSite()) === 0)
$q = $metager->getQ();
else
$q = $metager->getQ() . " site:" . $metager->getSite();
}else
{
$q = $metager->getQ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment