Merge pull request #3362 from sviande/fix_3361_api_warning

Fix #3361 check type for tags in entry repository
This commit is contained in:
Jérémy Benoist
2017-10-18 11:16:50 +02:00
committed by GitHub
3 changed files with 9 additions and 2 deletions

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;