From: Alexander Schmidt Date: Tue, 6 Nov 2012 18:22:40 +0000 (+0100) Subject: fixed manydone bug. X-Git-Url: https://git.treefish.org/banana.git/commitdiff_plain/7b7a9103e0252d7accb3c456e0f16e50ce3ace96?ds=inline;hp=b1667cd8e037e2b0da80fa63644f4fbce5cf5abe fixed manydone bug. --- diff --git a/admin/sessionoverview.php b/admin/sessionoverview.php index 449ace1..ab6cd7e 100644 --- a/admin/sessionoverview.php +++ b/admin/sessionoverview.php @@ -23,7 +23,9 @@ $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");