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

Support Array as limit value.

parent 7c6b2f4b
...@@ -530,7 +530,10 @@ class MysqliDb ...@@ -530,7 +530,10 @@ class MysqliDb
// Did the user set a limit // Did the user set a limit
if (isset($numRows)) { if (isset($numRows)) {
$this->_query .= ' LIMIT ' . (int)$numRows; if (is_array ($numRows))
$this->_query .= ' LIMIT ' . (int)$numRows[0] . ', ' . (int)$numRows[1];
else
$this->_query .= ' LIMIT ' . (int)$numRows;
} }
// Prepare query // Prepare query
......
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