summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2020-04-21 18:53:47 +0200
committerUrban Müller2020-04-21 18:53:47 +0200
commitc1145f3b16f6567be51dd2708f3a4db55aa0e715 (patch)
treecbdc05b323e93f39cd192e788233bdc917fb96e2
parentf8908f2c1e8637fe68bdd6fe7c20d5a7c6ba9118 (diff)
downloaditools-c1145f3b16f6567be51dd2708f3a4db55aa0e715.tar.gz
itools-c1145f3b16f6567be51dd2708f3a4db55aa0e715.tar.bz2
itools-c1145f3b16f6567be51dd2708f3a4db55aa0e715.zip
accept LIMIT 0
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index b06a3ea..3620018 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -358,7 +358,7 @@ function _where($params)
else if ($field == "LIMIT")
{
if ($value !== false) # only false no null; uninitialized values should not unintentionally omit LIMIT
- $stringquery .= " LIMIT " . (it::match('^[ ,\d]+$', $value) ?: it::error(['title' => "invalid LIMIT $value", 'body' => $params]) + 0);
+ $stringquery .= " LIMIT " . (it::match('^[ ,\d]+$', $value) ?? it::error(['title' => "invalid LIMIT $value", 'body' => $params]) + 0);
}
else
{