$markMid]);
if ($monitor) {
if ($monitor->delete()) {
ZM\AuditAction('delete', 'monitor', $markMid, 'Name: '.$monitor->Name());
} else {
// Do not record an audit entry for a delete that did not happen.
$error_message .= 'Error deleting monitor '.$markMid.': '.
$monitor->get_last_error().'
';
}
}
} else {
$error_message .= 'You do not have permission to delete monitor '.$markMid.'
';
} // end if canedit this monitor
} // end foreach monitor in MarkMid
} // markMids is set and we aren't limited to specific monitors
} // end if action == Delete
?>