mirror of
https://github.com/moodle/moodle.git
synced 2025-05-31 21:19:49 +02:00
Choice MDL-23088 fix old get_record call - thanks to Brian Gray for report/patch
This commit is contained in:
parent
7aba17d2af
commit
c83d9e12b9
@ -296,7 +296,7 @@ function choice_show_form($choice, $user, $cm, $allresponses) {
|
||||
} else {
|
||||
echo "<input type=\"submit\" value=\"".get_string("savemychoice","choice")."\" />";
|
||||
}
|
||||
if ($choice->allowupdate && $aaa = $DB->get_record('choice_answers', 'choiceid', $choice->id, 'userid', $user->id)) {
|
||||
if ($choice->allowupdate && $aaa = $DB->get_record('choice_answers', array('choiceid'=> $choice->id, 'userid'=> $user->id))) {
|
||||
echo "<br /><a href='view.php?id=".$cm->id."&action=delchoice&sesskey=".sesskey()."'>".get_string("removemychoice","choice")."</a>";
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user