]> git.treefish.org Git - banana.git/blobdiff - admin/sessions.php
submit as often as you want.
[banana.git] / admin / sessions.php
index a04f485670d8e72165b1dfb84af4c564f1a845d4..f8153baa5830f7b907cb7294640a32d9bc2f6422 100644 (file)
@@ -8,7 +8,7 @@
     block("lightgreen", "added session");
   }
 
     block("lightgreen", "added session");
   }
 
-  if($_GET['delete']!="") {
+  if(isset($_GET['delete'])) {
     $db->query("DELETE FROM sessions WHERE id=" . $_GET['delete']);
     block("red", "deleted session");
   }
     $db->query("DELETE FROM sessions WHERE id=" . $_GET['delete']);
     block("red", "deleted session");
   }
 </form>
 
 <?php
 </form>
 
 <?php
+  if ( $SESSIONS_n == 0 ) {
+    block("red", "no sessions defined");
+    exit;
+  }
+
   block("black", "session overview");
 
   print "<table>";
   block("black", "session overview");
 
   print "<table>";