mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-15 09:57:41 +01: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
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user