--- mod/assignment/lib.php	2011-03-03 18:43:36.000000000 +0100
+++ /var/www/html/moodle/mod/assignment/lib.php	2011-03-10 11:28:59.461462526 +0100
@@ -1265,10 +1265,8 @@
         $table->setup();
 
         if (empty($users)) {
-            echo $OUTPUT->heading(get_string('nosubmitusers','assignment'));
-            echo '</div>';
-            return true;
-        }
+            $table->print_html();  // Print empty table
+        } else { 
         if ($this->assignment->assignmenttype=='upload' || $this->assignment->assignmenttype=='online' || $this->assignment->assignmenttype=='uploadsingle') { //TODO: this is an ugly hack, where is the plugin spirit? (skodak)
             echo '<div style="text-align:right"><a href="submissions.php?id='.$this->cm->id.'&amp;download=zip">'.get_string('downloadall', 'assignment').'</a></div>';
         }
@@ -1460,6 +1458,7 @@
         }
 
         $table->print_html();  /// Print the whole table
+        }
 
         /// Print quickgrade form around the table
         if ($quickgrade && $table->started_output){
 
