From 4dd46d68b056c25dcbd6caac2cfd578136e64bd7 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Tue, 25 Sep 2012 17:27:32 +0200 Subject: [PATCH 1/1] ... --- .gitignore | 1 + submit.php | 8 ++++++++ var/.gitignore | 1 + 3 files changed, 10 insertions(+) create mode 100644 .gitignore create mode 100644 var/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/submit.php b/submit.php index 69d9ab8..2e88c85 100644 --- a/submit.php +++ b/submit.php @@ -41,6 +41,14 @@ print ''; break; } + + if(trim(end($sessions)[0]) == "") { + print ''; + print ''; + print '
no exercises defined
'; + break; + } + ?>
diff --git a/var/.gitignore b/var/.gitignore new file mode 100644 index 0000000..2211df6 --- /dev/null +++ b/var/.gitignore @@ -0,0 +1 @@ +*.txt -- 2.39.5