From: Hypolite Petovan Date: Wed, 20 Mar 2019 04:33:26 +0000 (-0400) Subject: Relax type constraint on limit parameter in Database\DBA X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a48ff1f95f4063e975cf1ef70f07f8be0da7920;p=friendica.git Relax type constraint on limit parameter in Database\DBA --- diff --git a/src/Database/DBA.php b/src/Database/DBA.php index 832f0a444f..5211c09106 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -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']); }