Skip to content

Commit

Permalink
Fix problem with boolean evaluation of SimpleXMLElement
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Silva committed Jun 6, 2014
1 parent ea21ba6 commit 3d56929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/or_xform_results_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected function _normalize_result_item($item, $path = NULL) {
$norm['machine_label'] = $question['machine_label'];

// Check if question was answered.
if ($item_data) {
if ((string)$item_data != '') {

// Check if is a question with items.
if (isset($question['items'])) {
Expand Down

0 comments on commit 3d56929

Please sign in to comment.