Skip to content

Commit

Permalink
Fixed issue: Fix PHP notice that breaks participants display - strict…
Browse files Browse the repository at this point in the history
… standards creating default object from empty value (extended version of Aaron's fix)
  • Loading branch information
jcleeland committed Aug 2, 2012
1 parent 93a131f commit 5c54305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/participantsaction.php
Expand Up @@ -1043,6 +1043,7 @@ function subval_sort($a, $subkey, $order)
array_push($participantfields, $value['attribute_id']);
}

$aData = new stdClass;
//If super admin all the participants will be visible
if (Yii::app()->session['USER_RIGHT_SUPERADMIN'])
{
Expand Down Expand Up @@ -1089,7 +1090,6 @@ function subval_sort($a, $subkey, $order)
$i++;
}
}
echo ls_json_encode($aData);
}
// Only the owned and shared participants will be visible
else
Expand Down Expand Up @@ -1139,8 +1139,8 @@ function subval_sort($a, $subkey, $order)
$i++;
}
}
echo ls_json_encode($aData);
}
echo ls_json_encode($aData);
}

/*
Expand Down

0 comments on commit 5c54305

Please sign in to comment.