Skip to content

Commit

Permalink
Fixed issue: Admin email address not shown when survey is inactive an…
Browse files Browse the repository at this point in the history
…d accessed by participants
  • Loading branch information
c-schmitz committed Nov 29, 2012
1 parent d607cb7 commit 40516db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/controllers/survey/index.php
Expand Up @@ -21,7 +21,7 @@ public function run()
function action()
{
global $surveyid;
global $thisstep;
global $thissurvey, $thisstep;
global $clienttoken, $tokensexist, $token;
global $clang;
$clang = Yii::app()->lang;
Expand All @@ -30,13 +30,14 @@ function action()
$this->_loadRequiredHelpersAndLibraries();

$param = $this->_getParameters(func_get_args(), $_POST);

$surveyid = $param['sid'];
Yii::app()->setConfig('surveyID',$surveyid);
$thisstep = $param['thisstep'];
$move = $param['move'];
$clienttoken = $param['token'];
$standardtemplaterootdir = Yii::app()->getConfig('standardtemplaterootdir');
$thissurvey = getSurveyInfo($surveyid);
if (is_null($thissurvey)) $thissurvey = getSurveyInfo($surveyid);

// unused vars in this method (used in methods using compacted method vars)
@$loadname = $param['loadname'];
Expand Down

0 comments on commit 40516db

Please sign in to comment.