Skip to content

Commit

Permalink
Dev : fixed iSurvey notice at first login
Browse files Browse the repository at this point in the history
  • Loading branch information
louis committed Oct 2, 2015
1 parent 257259f commit 0439bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/index.php
Expand Up @@ -16,7 +16,7 @@ class Index extends Survey_Common_Action

public function run()
{
App()->loadHelper('surveytranslator');
App()->loadHelper('surveytranslator');
App()->getClientScript()->registerPackage('panel-clickable');
App()->getClientScript()->registerPackage('panels-animation');
$aData['issuperadmin'] = false;
Expand All @@ -40,7 +40,6 @@ public function run()
{
$aData['showLastSurvey'] = false;
}
$baselang = Survey::model()->findByPk($iSurveyID)->language;

// We get the last question visited by user
$setting_entry = 'last_question_'.Yii::app()->user->getId();
Expand All @@ -56,6 +55,7 @@ public function run()

if( $lastquestion != null && $lastquestiongroup != null)
{
$baselang = Survey::model()->findByPk($iSurveyID)->language;
$aData['showLastQuestion'] = true;
$qid = $lastquestion;
$gid = $lastquestiongroup;
Expand Down

0 comments on commit 0439bc7

Please sign in to comment.