Renaming a variable
This commit is contained in:
		@@ -55,7 +55,7 @@ if ($mform->is_cancelled()) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Getting the data */
 | 
					/* Getting the data */
 | 
				
			||||||
if ($idediting = boolval($serviceid)) {
 | 
					if ($editing = boolval($serviceid)) {
 | 
				
			||||||
    $servicerecord = $DB->get_record("local_webhooks_service", array("id" => $serviceid), "*", MUST_EXIST);
 | 
					    $servicerecord = $DB->get_record("local_webhooks_service", array("id" => $serviceid), "*", MUST_EXIST);
 | 
				
			||||||
    $mform->set_data($servicerecord);
 | 
					    $mform->set_data($servicerecord);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -66,7 +66,7 @@ if ($data = $mform->get_data()) {
 | 
				
			|||||||
        $data->events = base64_encode(gzcompress(serialize($data->events), 9));
 | 
					        $data->events = base64_encode(gzcompress(serialize($data->events), 9));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ($idediting) {
 | 
					    if ($editing) {
 | 
				
			||||||
        $data->id = $serviceid;
 | 
					        $data->id = $serviceid;
 | 
				
			||||||
        $DB->update_record("local_webhooks_service", $data);
 | 
					        $DB->update_record("local_webhooks_service", $data);
 | 
				
			||||||
        redirect($managerservice, new lang_string("eventwebserviceserviceupdated", "webservice"));
 | 
					        redirect($managerservice, new lang_string("eventwebserviceserviceupdated", "webservice"));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user