diff --git a/system/db/builder/MySQLi.php b/system/db/builder/MySQLi.php index 98b9064..0074170 100644 --- a/system/db/builder/MySQLi.php +++ b/system/db/builder/MySQLi.php @@ -179,7 +179,7 @@ public function delete() public function order($field, $asc=true) { - $this->order = "ORDER BY ".$this->fieldQuote($field)." ".($asc || strcasecmp($asc, 'asc')===0?'ASC':'DESC'); + $this->order = "ORDER BY ".$this->fieldQuote($field)." ".($asc===true || strcasecmp($asc, 'asc')===0?'ASC':'DESC'); return $this; }