diff --git a/components/Search/templates/search/show.html.twig b/components/Search/templates/search/show.html.twig index fa9ad08d49..13cbcf9aa6 100644 --- a/components/Search/templates/search/show.html.twig +++ b/components/Search/templates/search/show.html.twig @@ -9,7 +9,7 @@ {% endblock stylesheets %} {% block body %} - {% if error %} + {% if error is defined %} diff --git a/components/Tag/Tag.php b/components/Tag/Tag.php index c582d2cea9..1e81042733 100644 --- a/components/Tag/Tag.php +++ b/components/Tag/Tag.php @@ -141,7 +141,7 @@ class Tag extends Component return Event::stop; } - public function onSeachQueryAddJoins(QueryBuilder &$note_qb, QueryBuilder &$actor_qb): bool + public function onSearchQueryAddJoins(QueryBuilder &$note_qb, QueryBuilder &$actor_qb): bool { $note_qb->join('App\Entity\NoteTag', 'note_tag', Expr\Join::WITH, 'note_tag.note_id = note.id'); $actor_qb->join('App\Entity\ActorTag', 'actor_tag', Expr\Join::WITH, 'actor_tag.tagger = actor.id');