]> git.treefish.org Git - banana.git/blobdiff - admin/summary.php
submit as often as you want.
[banana.git] / admin / summary.php
index 33658ef238c911e8fb3e557a5be6df4c050242fa..cac27fcf28a672bc6065396ff3f1a0c4a1963940 100644 (file)
@@ -6,7 +6,7 @@
 
   if ($db->query("SELECT COUNT(*) FROM students")->fetch(PDO::FETCH_NUM)[0] == 0) {
     block("red", "no students registered");
 
   if ($db->query("SELECT COUNT(*) FROM students")->fetch(PDO::FETCH_NUM)[0] == 0) {
     block("red", "no students registered");
-    break;
+    exit;
   }
 
   block("black", "summary of everything for " . date("d.m.Y H:i"));
   }
 
   block("black", "summary of everything for " . date("d.m.Y H:i"));