Skip to content
Snippets Groups Projects
Commit 6d601def authored by Matt Butcher's avatar Matt Butcher
Browse files

#572894 by mbutcher: Fix retriving result IDs for anonymous users when they...

#572894 by mbutcher: Fix retriving result IDs for anonymous users when they return. See earlier commit on the topic.
parent b82bfbe8
No related branches found
No related tags found
No related merge requests found
......@@ -2059,6 +2059,12 @@ function _quiz_resume_existing_quiz($quiz, $uid, $rid) {
* If no quiz is in progress, this will return 0.
*/
function _quiz_active_result_id($uid, $nid, $vid, $now = NULL) {
// Do not get active result IDs for anonymous users.
if ($uid == 0) {
return 0;
}
if (!isset($now)) {
$now = time();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment