Skip to content

Commit

Permalink
checklist空の時結果を空にするクエリをセットする
Browse files Browse the repository at this point in the history
  • Loading branch information
crifff committed Jun 30, 2012
1 parent 4314198 commit db6a462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protected/models/Program.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function defualtScope()
public function checkedByList($checklist) public function checkedByList($checklist)
{ {
if(count($checklist)===0) if(count($checklist)===0)
return array(); $checklist=array(array('TID'=>false));//結果が空になるクエリ


$criteria=$this->getDbCriteria(); $criteria=$this->getDbCriteria();
foreach($checklist as $conditions){ foreach($checklist as $conditions){
Expand Down

0 comments on commit db6a462

Please sign in to comment.