From d8bf49f81e0950fa943dfc6357288325a233fe8c Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 16 Oct 2015 11:10:38 +0800 Subject: [PATCH] MDL-51629 mod_survey: Coding style violation fix --- mod/survey/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/survey/lib.php b/mod/survey/lib.php index 3acce424cd3..934ed98c561 100644 --- a/mod/survey/lib.php +++ b/mod/survey/lib.php @@ -966,7 +966,7 @@ function survey_save_answers($survey, $answersrawdata, $course, $context) { // Sort through the data and arrange it. // This is necessary because some of the questions may have two answers, eg Question 1 -> 1 and P1. foreach ($answersrawdata as $key => $val) { - if ($key <> "userid" && $key <> "id") { + if ($key != "userid" && $key != "id") { if (substr($key, 0, 1) == "q") { $key = clean_param(substr($key, 1), PARAM_ALPHANUM); // Keep everything but the 'q', number or P number. } -- 2.39.2