Commit 818c1316 authored by Alexander Butenko's avatar Alexander Butenko

Support Array as limit value.

parent 7c6b2f4b
......@@ -530,6 +530,9 @@ class MysqliDb
// Did the user set a limit
if (isset($numRows)) {
if (is_array ($numRows))
$this->_query .= ' LIMIT ' . (int)$numRows[0] . ', ' . (int)$numRows[1];
else
$this->_query .= ' LIMIT ' . (int)$numRows;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment