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

@@ -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());
}