diff --git a/application/controllers/admin/participantsaction.php b/application/controllers/admin/participantsaction.php index 1f9510bc71c..66bdf0a33f5 100644 --- a/application/controllers/admin/participantsaction.php +++ b/application/controllers/admin/participantsaction.php @@ -251,6 +251,8 @@ function getAttributeInfo_json() $clang = Yii::app()->lang; $page = Yii::app()->request->getPost('page'); $limit = Yii::app()->request->getPost('rows'); + $limit = isset($limit) ? $limit : 50; //Stop division by zero errors + $records = ParticipantAttributeNames::getAttributes(); $attribute_types = array( @@ -953,6 +955,8 @@ function getParticipants_json() { $page = Yii::app()->request->getPost('page'); $limit = Yii::app()->request->getPost('rows'); + $limit = isset($limit) ? $limit : 50; //Stop division by zero errors + $attid = ParticipantAttributeNames::getAttributeVisibleID(); $participantfields = array('participant_id', 'can_edit', 'firstname', 'lastname', 'email', 'blacklisted', 'surveys', 'language', 'owner_uid'); foreach ($attid as $key => $value)