Avoid type error
This commit is contained in:
@@ -114,7 +114,7 @@ abstract class AbstractRepository extends Repository
|
|||||||
{
|
{
|
||||||
foreach (['city', 'region', 'country'] as $column) {
|
foreach (['city', 'region', 'country'] as $column) {
|
||||||
$key = $column . 'Uids';
|
$key = $column . 'Uids';
|
||||||
if (count($filterSettings[$key]) > 0) {
|
if (isset($filterSettings[$key]) && is_array($filterSettings[$key]) && count($filterSettings[$key]) > 0) {
|
||||||
$qb->andWhere($qb->expr()->in(
|
$qb->andWhere($qb->expr()->in(
|
||||||
'date.' . $column,
|
'date.' . $column,
|
||||||
$qb->createNamedParameter($filterSettings[$key], Connection::PARAM_INT_ARRAY)
|
$qb->createNamedParameter($filterSettings[$key], Connection::PARAM_INT_ARRAY)
|
||||||
|
|||||||
Reference in New Issue
Block a user