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:
668a499
)
MDL-32438 choice: fix fatal error on making choice
author
Michael Aherne
<michael.aherne@strath.ac.uk>
Fri, 13 Apr 2012 14:09:31 +0000
(15:09 +0100)
committer
Michael Aherne
<michael.aherne@strath.ac.uk>
Fri, 13 Apr 2012 14:16:12 +0000
(15:16 +0100)
mod/choice/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/choice/lib.php
b/mod/choice/lib.php
index
4736529
..
2b37b38
100644
(file)
--- a/
mod/choice/lib.php
+++ b/
mod/choice/lib.php
@@
-295,7
+295,7
@@
WHERE
$DB->update_record("choice_answers", $newanswer);
add_to_log($course->id, "choice", "choose again", "view.php?id=$cm->id", $choice->id, $cm->id);
} else {
- $newanswer = stdClass();
+ $newanswer =
new
stdClass();
$newanswer->choiceid = $choice->id;
$newanswer->userid = $userid;
$newanswer->optionid = $formanswer;