+ // Check to see that the return type is not a cluster.
+ if ($lessonpages[$exitjump]->qtype == LESSON_PAGE_CLUSTER) {
+ // If the exitjump is a cluster then go through this function again and try to find an unseen question.
+ $exitjump = $this->cluster_jump($exitjump, $userid);
+ }