Fix for errors with empty values

This commit is contained in:
Valentin Popov 2017-10-26 09:21:52 +04:00
parent dab55b9562
commit e86542d8f7

View File

@ -64,7 +64,9 @@ if ($data = $mform->get_data()) {
} }
/* Packing of data */ /* Packing of data */
if (!empty($data->events)) {
$data->events = base64_encode(gzcompress(serialize($data->events), 9)); $data->events = base64_encode(gzcompress(serialize($data->events), 9));
}
if ($idediting) { if ($idediting) {
$data->id = $idservice; $data->id = $idservice;