remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 11712fac8f
commit f889aac51a
  1. 8
      main/survey/surveyUtil.class.php

@ -3280,8 +3280,8 @@ class SurveyUtil
*/
public static function flagSurveyAsAnswered($surveyCode, $courseId)
{
$currenUserId = api_get_user_id();
$flag = sprintf("%s-%s-%d", $courseId, $surveyCode, $currenUserId);
$currentUserId = api_get_user_id();
$flag = sprintf("%s-%s-%d", $courseId, $surveyCode, $currentUserId);
if (!isset($_SESSION['filled_surveys'])) {
$_SESSION['filled_surveys'] = array();
@ -3298,8 +3298,8 @@ class SurveyUtil
*/
public static function isSurveyAnsweredFlagged($surveyCode, $courseId)
{
$currenUserId = api_get_user_id();
$flagToCheck = sprintf("%s-%s-%d", $courseId, $surveyCode, $currenUserId);
$currentUserId = api_get_user_id();
$flagToCheck = sprintf("%s-%s-%d", $courseId, $surveyCode, $currentUserId);
if (!isset($_SESSION['filled_surveys'])) {
return false;

Loading…
Cancel
Save