From c43db03624b873c5dd820c5b02bc9816dac79020 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 19 Oct 2014 13:36:54 +0200 Subject: [PATCH] Fixed input tag shown as its own sibling --- src/Dao/TagDao.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Dao/TagDao.php b/src/Dao/TagDao.php index 8f739192..4fe18c21 100644 --- a/src/Dao/TagDao.php +++ b/src/Dao/TagDao.php @@ -61,6 +61,7 @@ class TagDao extends AbstractDao implements ICrudDao ->groupBy('tags.id') ->orderBy('postCount DESC, name ASC'); $arrayEntities = iterator_to_array($query); + array_shift($arrayEntities); //don't show input tag itself return $this->arrayToEntities($arrayEntities); }