Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Lib.php postgresql compatibly fix

graph.php $virtualscales was used uninitilized, fixed.
  • Loading branch information...
commit 90c6ded26476d0b300002953ae6031483bf8c1c5 1 parent 40869b2
paca70 authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 mod/survey/graph.php
  2. +1 −1  mod/survey/lib.php
View
4 mod/survey/graph.php
@@ -260,9 +260,9 @@
}
foreach ($qqq as $qq) { // if any virtual, then use JUST virtual, else use JUST nonvirtual
if ($qq->multi) {
- if ($virtualscales && $qq->type < 0) {
+ if (!empty($virtualscales) && $qq->type < 0) {
$question[] = $qq;
- } else if (!$virtualscales && $qq->type > 0) {
+ } else if (empty($virtualscales) && $qq->type > 0) {
$question[] = $qq;
}
}
View
2  mod/survey/lib.php
@@ -234,7 +234,7 @@ function survey_get_responses($surveyid, $groupid) {
{$CFG->prefix}user AS u $groupsdb
WHERE a.survey = $surveyid
AND a.userid = u.id $groupsql
- GROUP BY u.id, u.firstname, u.lastname
+ GROUP BY u.id, u.firstname, u.lastname, u.picture
ORDER BY time ASC");
}
Please sign in to comment.
Something went wrong with that request. Please try again.