Skip to content

Commit

Permalink
Dev Small validation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 18, 2022
1 parent 0c1a7cc commit c27c352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function actionIndex($sid = null)
} else {
$iSurveyId = Yii::app()->request->getPost('sid');
}
$iSurveyId = (int) $iSurveyId;

$oSurvey = Survey::model()->find("sid=:sid", array(':sid' => $iSurveyId));
/* Throw 404 if needed */
Expand Down

0 comments on commit c27c352

Please sign in to comment.