Correction of transmitted parameters
This commit is contained in:
@ -74,7 +74,9 @@ class events {
|
||||
*/
|
||||
private static function handler_callback($data, $callback) {
|
||||
if ($callback->enable) {
|
||||
$events = unserialize(gzuncompress(base64_decode($callback->events)));
|
||||
if (!empty($callback->events)) {
|
||||
$events = unserialize(gzuncompress(base64_decode($callback->events)));
|
||||
}
|
||||
|
||||
if (boolval($events[$data["eventname"]])) {
|
||||
/* Adding to the data token */
|
||||
|
@ -81,7 +81,7 @@ class service_edit_form extends moodleform {
|
||||
$mform->addRule("url", null, "required");
|
||||
|
||||
/* Enabling the service */
|
||||
$mform->addElement("checkbox", "enable",
|
||||
$mform->addElement("advcheckbox", "enable",
|
||||
new lang_string("enable", "moodle"));
|
||||
$mform->setType("enable", PARAM_BOOL);
|
||||
$mform->setDefault("enable", 1);
|
||||
|
Reference in New Issue
Block a user