Permalink
Browse files

Removed unnecessary comparison in buildQuery

  • Loading branch information...
1 parent d25601d commit a056c28e08edc96f71c044c86376ef4c3ae6e77a @suralc suralc committed Jul 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/db/CDbCommand.php
@@ -541,7 +541,7 @@ private function queryInternal($method,$mode,$params=array())
*/
public function buildQuery($query)
{
- $sql=!empty($query['distinct']) && $query['distinct'] ? 'SELECT DISTINCT' : 'SELECT';
+ $sql=!empty($query['distinct']) ? 'SELECT DISTINCT' : 'SELECT';
$sql.=' '.(!empty($query['select']) ? $query['select'] : '*');
if(!empty($query['from']))

0 comments on commit a056c28

Please sign in to comment.