Fix #3361 check type for tags in entry repository

Check is $tags is a string before explode
This commit is contained in:
Sébastien Viande 2017-09-25 19:34:42 +02:00
parent f44a927530
commit fafdf17117

View file

@ -151,7 +151,7 @@ class EntryRepository extends EntityRepository
$qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since)));
}
if ('' !== $tags) {
if (is_string($tags) && '' !== $tags) {
foreach (explode(',', $tags) as $i => $tag) {
$entryAlias = 'e' . $i;
$tagAlias = 't' . $i;