Bugfix : allows survey creator to see partial results.
[platal.git] / modules / survey / survey.inc.php
index 5139844..6f8ad08 100644 (file)
@@ -352,7 +352,7 @@ class Survey
         if (!S::user()->checkPerms(PERMS_USER)) {
             $where .=  XDB::format(' AND mode = {?}', self::MODE_ALL);
         }
-        $sql = 'SELECT id, title, end, mode
+        $sql = 'SELECT id, title, uid, end, mode
                   FROM surveys
                  WHERE '.$where.'
               ORDER BY end DESC;';