Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

That virtualscales issue is hopefully fixed now.

  • Loading branch information...
commit d08ffdd36d62794740c199a7e43680d409b9d43d 1 parent 90c6ded
paca70 authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 mod/survey/graph.php
View
7 mod/survey/graph.php
@@ -49,6 +49,8 @@
$strpreferredclass = get_string("preferredclass", "survey");
$strpreferredstudent = get_string("preferredstudent", "survey", $course->student);
+ $virtualscales = false; //set default value for case clauses
+
switch ($type) {
case "question.png":
@@ -248,6 +250,7 @@
case "overall.png":
$qqq = get_records_list("survey_questions", "id", $survey->questions);
+
foreach ($qqq as $key => $qq) {
if ($qq->multi) {
@@ -260,9 +263,9 @@
}
foreach ($qqq as $qq) { // if any virtual, then use JUST virtual, else use JUST nonvirtual
if ($qq->multi) {
- if (!empty($virtualscales) && $qq->type < 0) {
+ if ($virtualscales && $qq->type < 0) {
$question[] = $qq;
- } else if (empty($virtualscales) && $qq->type > 0) {
+ } else if (!$virtualscales && $qq->type > 0) {
$question[] = $qq;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.