Merge pull request #63 from polter-rnd/fix-typo
fix typo in search error handling
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user