Add arrays for monitors, fix array for test results and use the arrays to delete monitors and bug links when a version is deleted

This commit is contained in:
Tony Lambregts
2005-10-29 04:41:10 +00:00
committed by WineHQ
parent d1ebda9a8d
commit 7bbe114e6d
3 changed files with 37 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ class Monitor {
{
$sQuery = "SELECT *
FROM appMonitors
WHERE MonitorId = '".$iMonitorId."'";
WHERE monitorId = '".$iMonitorId."'";
$hResult = query_appdb($sQuery);
$oRow = mysql_fetch_object($hResult);
$this->iMonitorId = $oRow->monitorId;
@@ -85,7 +85,7 @@ class Monitor {
*/
function delete($bSilent=false)
{
$hResult = query_appdb("DELETE FROM appMonitors WHERE MonitorId = '".$this->iMonitorId."'");
$hResult = query_appdb("DELETE FROM appMonitors WHERE monitorId = '".$this->iMonitorId."'");
if(!$bSilent)
$this->SendNotificationMail("delete");
}