Skip to content

Commit

Permalink
Dev more cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Sep 24, 2015
1 parent 40ea61f commit 9d215be
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 620 deletions.
2 changes: 1 addition & 1 deletion protected/entry.php
Expand Up @@ -46,6 +46,6 @@
require_once(__DIR__ . '/helpers/globals.php');


$config = require_config($context, __DIR__ . '/config/internal.php');
$config = require_config(__DIR__ . '/config/internal.php', $context);
unset($context);
Yii::createApplication(WebApplication::class, $config)->run();
4 changes: 2 additions & 2 deletions protected/helpers/SurveyRuntime.php
Expand Up @@ -219,12 +219,12 @@ function run(SurveySession $session, $move)
// jump to current step using new language, processing POST values
$moveResult = LimeExpressionManager::JumpTo($session->getStep(), true, true, true); // do process the POST data
}
if (isset($move) && isNumericInt($move) && $session->survey->questionindex == Survey::INDEX_INCREMENTAL) {
if (isset($move) && is_numeric($move) && $session->survey->questionindex == Survey::INDEX_INCREMENTAL) {
$move = (int)$move;
if ($move > 0 && ($move <= $session->getStep() || $move <= $session->getMaxStep())) {
$moveResult = LimeExpressionManager::JumpTo($move);
}
} elseif (isset($move) && isNumericInt($move) && $session->survey->questionindex == Survey::INDEX_FULL) {
} elseif (isset($move) && is_numeric($move) && $session->survey->questionindex == Survey::INDEX_FULL) {
$moveResult = LimeExpressionManager::JumpTo($move, true, true);
$session->setStep($moveResult['seq'] + 1);
}
Expand Down

0 comments on commit 9d215be

Please sign in to comment.