Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

That virtualscales issue is hopefully fixed now.

  • Loading branch information...
commit d08ffdd36d62794740c199a7e43680d409b9d43d 1 parent 90c6ded
authored October 22, 2004

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. 7  mod/survey/graph.php
7  mod/survey/graph.php
@@ -49,6 +49,8 @@
49 49
     $strpreferredclass = get_string("preferredclass", "survey");
50 50
     $strpreferredstudent = get_string("preferredstudent", "survey", $course->student);
51 51
 
  52
+    $virtualscales = false; //set default value for case clauses
  53
+
52 54
     switch ($type) {
53 55
 
54 56
      case "question.png":
@@ -248,6 +250,7 @@
248 250
      case "overall.png":
249 251
 
250 252
        $qqq = get_records_list("survey_questions", "id", $survey->questions);
  253
+       
251 254
 
252 255
        foreach ($qqq as $key => $qq) {
253 256
            if ($qq->multi) {
@@ -260,9 +263,9 @@
260 263
        }
261 264
        foreach ($qqq as $qq) {         // if any virtual, then use JUST virtual, else use JUST nonvirtual
262 265
            if ($qq->multi) {
263  
-               if (!empty($virtualscales) && $qq->type < 0) {
  266
+               if ($virtualscales && $qq->type < 0) {
264 267
                    $question[] = $qq;
265  
-               } else if (empty($virtualscales) && $qq->type > 0) {
  268
+               } else if (!$virtualscales && $qq->type > 0) {
266 269
                    $question[] = $qq;
267 270
                }
268 271
            }

0 notes on commit d08ffdd

Please sign in to comment.
Something went wrong with that request. Please try again.