]> git.mxchange.org Git - friendica.git/commitdiff
Relax type constraint on limit parameter in Database\DBA
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 20 Mar 2019 04:33:26 +0000 (00:33 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 20 Mar 2019 04:33:26 +0000 (00:33 -0400)
src/Database/DBA.php

index 832f0a444f994684354267123a0f9ff6c8c39fed..5211c0910617da7a50946d30c9986b4c84a4241e 100644 (file)
@@ -1484,7 +1484,7 @@ class DBA
                }
 
                $limit_string = '';
-               if (isset($params['limit']) && is_int($params['limit'])) {
+               if (isset($params['limit']) && is_numeric($params['limit'])) {
                        $limit_string = " LIMIT " . intval($params['limit']);
                }