mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-11-04 11:18:25 +00:00 
			
		
		
		
	do not use an integer in a condition
This commit is contained in:
		@@ -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);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user