From 8a48ff1f95f4063e975cf1ef70f07f8be0da7920 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 20 Mar 2019 00:33:26 -0400 Subject: [PATCH] Relax type constraint on limit parameter in Database\DBA --- src/Database/DBA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); } -- 2.39.5