]> git.treefish.org Git - banana.git/commitdiff
...
authorAlexander Schmidt <alex@treefish.org>
Tue, 25 Sep 2012 15:27:32 +0000 (17:27 +0200)
committerAlexander Schmidt <alex@treefish.org>
Tue, 25 Sep 2012 15:27:32 +0000 (17:27 +0200)
.gitignore [new file with mode: 0644]
submit.php
var/.gitignore [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..b25c15b
--- /dev/null
@@ -0,0 +1 @@
+*~
index 69d9ab85ce9aba4b454ba0e9eef761fca571ed3b..2e88c8527126ebcead3779082814350c192cb1cd 100644 (file)
     print '</table>';
     break;
   }
+
+  if(trim(end($sessions)[0]) == "") {
+    print '<table bgcolor="red">';
+      print '<tr><th><b><font color="white">no exercises defined</font></b></th><tr>';
+    print '</table>';
+    break;
+  }
+
 ?>
 
   <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
diff --git a/var/.gitignore b/var/.gitignore
new file mode 100644 (file)
index 0000000..2211df6
--- /dev/null
@@ -0,0 +1 @@
+*.txt