Commit 62dbb2da authored by Dominik Hebeler's avatar Dominik Hebeler

Wenn keine Suchmaschine zum Weitersuchen eingestellt war, ist das Programm abgestürzt.

parent d6edceb4
......@@ -1065,7 +1065,7 @@ class MetaGer
public function nextSearchLink()
{
if (isset($this->next) && count($this->next['engines']) > 0) {
if (isset($this->next) && isset($this->next['engines']) && count($this->next['engines']) > 0) {
$requestData = $this->request->except(['page', 'out']);
$requestData['next'] = md5(serialize($this->next));
$link = action('MetaGerSearch@search', $requestData);
......
......@@ -68,17 +68,20 @@ abstract class Searchengine
} else {
$q = $metager->getQ();
}
$this->getString = $this->generateGetString($q, $metager->getUrl(), $metager->getLanguage(), $metager->getCategory());
$this->getString = $this->generateGetString($q, $metager->getUrl(), $metager->getLanguage(), $metager->getCategory());
die($this->getString);
$this->hash = md5($this->host . $this->getString . $this->port . $this->name);
$this->resultHash = $metager->getHashCode();
}
abstract public function loadResults($result);
public function getLast(MetaGer $metager, $result){
public function getLast(MetaGer $metager, $result)
{
}
public function getNext(MetaGer $metager, $result){
public function getNext(MetaGer $metager, $result)
{
}
......
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