diff options
author | Urban Müller | 2020-04-21 18:53:47 +0200 |
---|---|---|
committer | Urban Müller | 2020-04-21 18:53:47 +0200 |
commit | c1145f3b16f6567be51dd2708f3a4db55aa0e715 (patch) | |
tree | cbdc05b323e93f39cd192e788233bdc917fb96e2 | |
parent | f8908f2c1e8637fe68bdd6fe7c20d5a7c6ba9118 (diff) | |
download | itools-c1145f3b16f6567be51dd2708f3a4db55aa0e715.tar.gz itools-c1145f3b16f6567be51dd2708f3a4db55aa0e715.tar.bz2 itools-c1145f3b16f6567be51dd2708f3a4db55aa0e715.zip |
accept LIMIT 0
-rw-r--r-- | it_dbi.class | 2 |
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 { |