Skip to content

Commit 0acd4e7

Browse files
authored
Merge pull request #938 from datanfr/bug-motion-censure
Fix bug
2 parents 3b67268 + 40b1cba commit 0acd4e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

application/models/Votes_model.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ public function get_vote_groupes($num, $legislature, $type){
325325
$results = $this->db->query($sql, array($legislature, $num))->result_array();
326326

327327
// Fix bug for Motion de censure --> positionMajoritaire only when
328+
echo $type;
328329
if ($type == 'motion de censure') {
329330
foreach($results as $key => $value) {
330331
if ($value['positionMajoritaire'] == 'pour') {
@@ -335,7 +336,7 @@ public function get_vote_groupes($num, $legislature, $type){
335336
}
336337
}
337338

338-
return $result;
339+
return $results;
339340
}
340341

341342
public function get_vote_groupes_simplified($num, $legislature){

0 commit comments

Comments
 (0)