diff --git a/frontend/models/SearchModel.php b/frontend/models/SearchModel.php index 7d54aa7..8c3c6ab 100644 --- a/frontend/models/SearchModel.php +++ b/frontend/models/SearchModel.php @@ -50,6 +50,6 @@ if ($this->bookTitle){ $query->orWhere(['ilike', 'secondname', $this->text])->orWhere(['ilike', new Expression('concat(name,\' \',secondname)'), $this->text]); } - return $query->andWhere(['book.stattus' => Book::STATUS_ACTIVE])->column(); + return $query->andWhere(['book.status' => Book::STATUS_ACTIVE])->column(); } } \ No newline at end of file -- libgit2 0.21.4