Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Lib.php postgresql compatibly fix

graph.php $virtualscales was used uninitilized, fixed.
  • Loading branch information...
commit 90c6ded26476d0b300002953ae6031483bf8c1c5 1 parent 40869b2
authored October 22, 2004
4  mod/survey/graph.php
@@ -260,9 +260,9 @@
260 260
        }
261 261
        foreach ($qqq as $qq) {         // if any virtual, then use JUST virtual, else use JUST nonvirtual
262 262
            if ($qq->multi) {
263  
-               if ($virtualscales && $qq->type < 0) {
  263
+               if (!empty($virtualscales) && $qq->type < 0) {
264 264
                    $question[] = $qq;
265  
-               } else if (!$virtualscales && $qq->type > 0) {
  265
+               } else if (empty($virtualscales) && $qq->type > 0) {
266 266
                    $question[] = $qq;
267 267
                }
268 268
            }
2  mod/survey/lib.php
@@ -234,7 +234,7 @@ function survey_get_responses($surveyid, $groupid) {
234 234
                                    {$CFG->prefix}user AS u   $groupsdb
235 235
                              WHERE a.survey = $surveyid 
236 236
                                    AND a.userid = u.id $groupsql
237  
-                          GROUP BY u.id, u.firstname, u.lastname
  237
+                          GROUP BY u.id, u.firstname, u.lastname, u.picture
238 238
                           ORDER BY time ASC");
239 239
 }
240 240
 

0 notes on commit 90c6ded

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