Skip to content

Commit

Permalink
Initialized cleanResults array in AnswerManager. PHP 5.4 wasn't happy…
Browse files Browse the repository at this point in the history
… with it.
  • Loading branch information
ondrowan committed Oct 28, 2012
1 parent e019cde commit 3411452
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Entity/AnswerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public function doCountVotesOf(PersistentCollection $fields)

$results = $query->getResult();

$cleanResults = array();

foreach ($results as $result) {
$cleanResults[$titles[$result['value']]] = $result[1];
}
Expand Down

0 comments on commit 3411452

Please sign in to comment.