Added support for removing an assignment (and one char beautification)
authorJoey Schulze <joey@infodrom.org>
Fri, 17 May 2002 16:11:25 +0000 (16:11 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 17 May 2002 16:11:25 +0000 (16:11 +0000)
src/LinuxTag/2002/supporter/update.wml

index 262fe7c..4d130e4 100644 (file)
     } else {
       $query = '';
     }
-
+  } elseif ($type == "loose") {
+    $query = sprintf ("DELETE FROM assignment WHERE oid = %d", $assignment);
   } elseif ($type == "job_fragment_new")
   {
        if (empty($endtime))
                         addslashes($comment));
   } else
   {
-    echo ("<p><b>Unknown type</b></p>");
+    echo ("<p><b>Unknown type!</b></p>");
   }
 
   if (strlen ($query)) {