Permalink
Browse files

fixing the problem with order and \Zend\Db\Sql\Expression

  • Loading branch information...
1 parent f5494d4 commit 1720147a308a7be30ee774398af69674795fcde9 @strubloid committed Nov 19, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 library/Zend/Db/Sql/Select.php
@@ -340,6 +340,8 @@ public function order($order)
} else {
$order = (array) $order;
}
+ } elseif ($order instanceof Expression){
+ $order = array($order);
}
foreach ($order as $k => $v) {
if (is_string($k)) {

0 comments on commit 1720147

Please sign in to comment.