$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");