Skip to content

Commit

Permalink
Fix order using string is not accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
hernantas committed Oct 20, 2016
1 parent 3959047 commit 472d78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/db/builder/MySQLi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 472d78c

Please sign in to comment.