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

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

parent d6edceb4
...@@ -1065,7 +1065,7 @@ class MetaGer ...@@ -1065,7 +1065,7 @@ class MetaGer
public function nextSearchLink() 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 = $this->request->except(['page', 'out']);
$requestData['next'] = md5(serialize($this->next)); $requestData['next'] = md5(serialize($this->next));
$link = action('MetaGerSearch@search', $requestData); $link = action('MetaGerSearch@search', $requestData);
......
...@@ -69,16 +69,19 @@ abstract class Searchengine ...@@ -69,16 +69,19 @@ abstract class Searchengine
$q = $metager->getQ(); $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->hash = md5($this->host . $this->getString . $this->port . $this->name);
$this->resultHash = $metager->getHashCode(); $this->resultHash = $metager->getHashCode();
} }
abstract public function loadResults($result); 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