mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-05 15:29:50 +00:00
do not use an integer in a condition
This commit is contained in:
parent
e2efb267f5
commit
6e48f8f7ea
@ -91,11 +91,11 @@ class NewsItemRepository implements ObjectRepository
|
||||
{
|
||||
$qb = $this->buildQueryCurrentNews();
|
||||
|
||||
if ($limit) {
|
||||
if (null !== $limit) {
|
||||
$qb->setMaxResults($limit);
|
||||
}
|
||||
|
||||
if ($offset) {
|
||||
if (null !== $offset) {
|
||||
$qb->setFirstResult($offset);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user