Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5762c92
)
MDL-51629 mod_survey: Coding style violation fix
author
Andrew Nicols
<andrew@nicols.co.uk>
Fri, 16 Oct 2015 03:10:38 +0000
(11:10 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Fri, 16 Oct 2015 03:10:38 +0000
(11:10 +0800)
mod/survey/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/survey/lib.php
b/mod/survey/lib.php
index
3acce42
..
934ed98
100644
(file)
--- 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.
}