]> git.treefish.org Git - banana.git/commitdiff
fixed manydone bug.
authorAlexander Schmidt <alex@treefish.org>
Tue, 6 Nov 2012 18:22:40 +0000 (19:22 +0100)
committerAlexander Schmidt <alex@treefish.org>
Tue, 6 Nov 2012 18:22:40 +0000 (19:22 +0100)
admin/sessionoverview.php

index 449ace16a01674f4f7680f298f0a3ce6919e680a..ab6cd7ef590d6b6767f4bf7115179b203859ec8a 100644 (file)
@@ -23,7 +23,9 @@
     $up_mnumber = trim($_GET['mnumber']);
     $up_tstamp = trim($_GET['tstamp']);
     $up_editsub = trim($_GET['editsub']);
     $up_mnumber = trim($_GET['mnumber']);
     $up_tstamp = trim($_GET['tstamp']);
     $up_editsub = trim($_GET['editsub']);
-    $up_manydone = count(explode(",",$up_editsub));
+
+    if( $up_editsub == "" ) { $up_manydone = 0; }
+    else{ $up_manydone = count(explode(",",$up_editsub)); }
 
     if( $db->query("SELECT COUNT(*) FROM workdone WHERE mnumber=$up_mnumber AND session=$up_sessionid AND tstamp=$up_tstamp")->fetch(PDO::FETCH_NUM)[0] == 0 ) {
       $db->query("DELETE FROM workdone WHERE mnumber=$up_mnumber AND session=$up_sessionid");
 
     if( $db->query("SELECT COUNT(*) FROM workdone WHERE mnumber=$up_mnumber AND session=$up_sessionid AND tstamp=$up_tstamp")->fetch(PDO::FETCH_NUM)[0] == 0 ) {
       $db->query("DELETE FROM workdone WHERE mnumber=$up_mnumber AND session=$up_sessionid");