fix typo in search error handling

Signed-off-by: Pavel Artsishevsky <polter.rnd@gmail.com>
This commit is contained in:
Pavel Artsishevsky
2022-05-24 10:33:32 +03:00
parent 7e4837fe8b
commit 233887012a
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class TPB extends searchBase implements searchInterface
$this->crawler->add($this->getContent());
$this->getItems()->addActionLinks();
if ($this->hasErrors()) {
return tableData::create()->setEror($this->getErrors());
return tableData::create()->setError($this->getErrors());
}
return tableData::create($this->getTableTitles(), $this->getRows());
}

View File

@@ -24,7 +24,7 @@ class bitSearch extends searchBase implements searchInterface
$this->searchUrl = $this->baseUrl;
$content = $this->getContent();
if ($this->hasErrors()) {
return tableData::create()->setEror($this->getErrors());
return tableData::create()->setError($this->getErrors());
}
$this->crawler->add($content);
$this->getItems()->addActionLinks();

View File

@@ -23,7 +23,7 @@ class sliderkz extends searchBase implements searchInterface
$this->searchUrl = $this->baseUrl;
$this->getItems()->setTableTitles(["Title", "Duration", "Actions"])->addActionLinks();
if ($this->hasErrors()) {
return tableData::create()->setEror($this->getErrors());
return tableData::create()->setError($this->getErrors());
}
return tableData::create($this->getTableTitles(), $this->getRows());
}