Skip to content

Commit

Permalink
Dev: fixed $filenotvalidated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed May 11, 2017
1 parent 2112d11 commit b58e63e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -70,7 +70,7 @@ class SurveyRuntimeHelper {
private $notanswered; // A global variable...Should be $oResponse->notanswered
private $unansweredSQList; // A list of the unanswered responses created via the global variable $notanswered. Should be $oResponse->unanswereds
private $invalidSQList; // Invalid answered, fed from $moveResult(LEM). Its logic should be in Response model.
private $filenotvalidated; // Same, but specific to file question type. (seems to be problematic by the past)
private $filenotvalidated = false; // Same, but specific to file question type. (seems to be problematic by the past)

// strings
private $completed; // The string containing the completed message
Expand Down Expand Up @@ -209,8 +209,8 @@ public function run($surveyid,$args)
}

// Display the "file validation" popup if necessary
if ($okToShowErrors && isset($filenotvalidated)){
list($filevalidationpopup, $fpopup) = file_validation_popup($ia, $filenotvalidated);
if ($okToShowErrors && ($this->filenotvalidated !== false) ){
list($filevalidationpopup, $fpopup) = file_validation_popup($ia, $this->filenotvalidated);
}
}

Expand Down

0 comments on commit b58e63e

Please sign in to comment.