Fix for errors with empty values
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user