I'm not sure about $quiz->name... Maybe, $user->name? Otherwise it will always don't work, just because $node->name is always defined.

Comments

sivaji_ganesh_jojodae’s picture

Status: Active » Postponed (maintainer needs more info)

May i know what unexpected behaviors this will produce.

quiz.module, line ~1005 contains

function quiz_take_quiz($quiz) {
  global $user;  
  $allow_skipping = TRUE;

  // If no access, fail.
  if (!user_access('access quiz')) {
    drupal_access_denied();
    return;
  }
  if (!isset($quiz)) {
    drupal_not_found();
    return;
  }

  // If anonymous user and no unique hash, refresh with a unique string to prevent caching.
  if (!$quiz->name && arg(4) == NULL) {
    drupal_goto('node/'. $quiz->nid .'/quiz/start/'. md5(mt_rand() . time()));
  }
  ...
  ...
}

I think it is related to quiz for anonymous users, i will ask mbutcher to look into this.

sivaji_ganesh_jojodae’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I can't do anything unless you provide some input. Marking this as won't fix.