Skip to content

Commit

Permalink
Dev: $upload_file definition
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed May 10, 2017
1 parent d61f00a commit 4eb8580
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -162,6 +162,7 @@ public function run($surveyid,$args)
$qanda = array();
}

$upload_file = false;
foreach ($_SESSION[$LEMsessid]['fieldarray'] as $key => $ia){
++$qnumber;
$ia[9] = $qnumber; // incremental question count;
Expand Down Expand Up @@ -218,7 +219,7 @@ public function run($surveyid,$args)
}

if ($ia[4] == "|")
$upload_file = TRUE;
$upload_file = true;
} //end iteration
}

Expand Down Expand Up @@ -272,7 +273,7 @@ public function run($surveyid,$args)

$thissurvey['languagecode'] = $languagecode;
$thissurvey['dir'] = (getLanguageRTL($languagecode))?"rtl":"ltr";
$thissurvey['upload_file'] = (isset($upload_file) && $upload_file)?true:false;
$thissurvey['upload_file'] = $upload_file;
$hiddenfieldnames = $thissurvey['hiddenfieldnames'] = implode("|", $inputnames);

Yii::app()->clientScript->registerScriptFile(Yii::app()->getConfig("generalscripts").'nojs.js',CClientScript::POS_HEAD);
Expand Down

0 comments on commit 4eb8580

Please sign in to comment.