$data object needed to be cleared after the SQL line has been written.

master
Steffen Pohle 4 years ago
parent 369ea47f83
commit d4ea11243d

@ -25,7 +25,23 @@ class EventMeta {
public $servicename; public $servicename;
public $data; public $data;
public $status; public $status;
public $result; public $result;
function Clear() {
$this->eventrecordid = 0;
$this->time = 0;
$this->eventid = 0;
$this->task = "";
$this->level = "";
$this->keywords = "";
$this->computer = "";
$this->server = "";
$this->username = "";
$this->domainname = "";
$this->servicename = "";
$this->data = "";
$this->status = "";
$this->result= 0;
}
} }
class EventData { class EventData {
@ -72,6 +88,7 @@ function sql_addmeta ($data, $darray) {
$data->data, $data->data,
$data->status $data->status
); );
$data->Clear();
}; };

Loading…
Cancel
Save