From 7bb8bf1da20852fe085fdf3fa2dec32b722b6907 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 9 Apr 2013 22:18:31 +0000 Subject: [PATCH] db mysql --- DatabaseMysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DatabaseMysql.php b/DatabaseMysql.php index 869068a..5817f7e 100644 --- a/DatabaseMysql.php +++ b/DatabaseMysql.php @@ -436,7 +436,7 @@ class DatabaseMysql implements Database { $sql .= " GROUP BY ".$this->order_option($options['GROUP BY']); } - if (!empty($options['ORDER BY']) && $options['GROUP BY'] !== '0') + if (!empty($options['ORDER BY']) && $options['ORDER BY'] !== '0') { $sql .= " ORDER BY ".$this->order_option($options['ORDER BY']); }