Permalink
Browse files

Update CActiveFinder.php

Adds the missing "params" array from the query object.
  • Loading branch information...
1 parent dc6aae5 commit 16e7bac6afb58adc1ffe26bc538f044cb7b5d2d7 @ivokund ivokund committed Mar 20, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 framework/db/ar/CActiveFinder.php
@@ -711,6 +711,7 @@ public function count($criteria=null)
$sql=$command->getText();
$sql="SELECT COUNT(*) FROM ({$sql}) sq";
$command->setText($sql);
+ $command->params=$query->params;
return $command->queryScalar();
}
else

0 comments on commit 16e7bac

Please sign in to comment.