mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-11 01:15:26 +00:00
Fix #3361 check type for tags in entry repository
Check is $tags is a string before explode
This commit is contained in:
parent
f44a927530
commit
fafdf17117
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
$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) {
|
foreach (explode(',', $tags) as $i => $tag) {
|
||||||
$entryAlias = 'e' . $i;
|
$entryAlias = 'e' . $i;
|
||||||
$tagAlias = 't' . $i;
|
$tagAlias = 't' . $i;
|
||||||
|
|
Loading…
Reference in a new issue