@@ 356-362 (lines=7) @@ | ||
353 | ->where($eb->eq('gperm_name', $eb->literal('block_read'))) |
|
354 | ->andWhere('gperm_modid=1'); |
|
355 | ||
356 | if (is_array($groupid) && !empty($groupid)) { |
|
357 | $qb->andWhere($eb->in('gperm_groupid', $groupid)); |
|
358 | } else { |
|
359 | if ((int)($groupid) > 0) { |
|
360 | $qb->andWhere($eb->eq('gperm_groupid', $groupid)); |
|
361 | } |
|
362 | } |
|
363 | $result = $qb->execute(); |
|
364 | $blockids = $result->fetchAll(\PDO::FETCH_COLUMN); |
|
365 | } |
|
@@ 597-603 (lines=7) @@ | ||
594 | ->where($eb->eq('p.gperm_name', $eb->literal('block_read'))) |
|
595 | ->andWhere('gperm_modid=1'); |
|
596 | ||
597 | if (is_array($groupid)) { |
|
598 | $qb->andWhere($eb->in('gperm_groupid', $groupid)); |
|
599 | } else { |
|
600 | if ((int)($groupid) > 0) { |
|
601 | $qb->andWhere($eb->eq('gperm_groupid', $groupid)); |
|
602 | } |
|
603 | } |
|
604 | ||
605 | $result = $qb->execute(); |
|
606 | $blockids = $result->fetchAll(\PDO::FETCH_COLUMN); |