Commit e2c24452 authored by Alex Ne's avatar Alex Ne

Багфикс

parent 612dd120
......@@ -264,8 +264,10 @@ class PDO {
if (is_integer($limit)) {
$SQL .= " LIMIT {$limit}";
} else if (is_array($order)) {
$SQL .= " LIMIT {$limit[0]},{$limit[1]}";
} else if (is_array($limit) && count($limit) == 1) {
$SQL .= " LIMIT {$limit[0]}";
} else if (is_array($limit) && count($limit) == 2) {
$SQL .= " LIMIT {$limit[0]}, {$limit[1]}";
}
$statement = $this->prepare($SQL);
$whete_obj->bind($statement);
......
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