Parcourir la source

Update Model.php

Dog il y a 3 ans
Parent
commit
7610989d5e
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/Grid/Model.php

+ 4 - 1
src/Grid/Model.php

@@ -536,7 +536,10 @@ class Model
         }
 
         $perPage =  $this->request->get($this->getPerPageName()) ?: $this->perPage;
-        if($perPage) return (int)$perPage;
+        if($perPage){
+            return (int) $perPage;
+        }
+        
         return null;
     }