Edit the result of the function
This commit is contained in:
parent
785a541d1c
commit
7e1284bfe2
4
lib.php
4
lib.php
@ -87,7 +87,7 @@ function local_webhooks_get_list_records($limitfrom = 0, $limitnum = 0) {
|
|||||||
* Create an entry in the database.
|
* Create an entry in the database.
|
||||||
*
|
*
|
||||||
* @param object $record
|
* @param object $record
|
||||||
* @return boolean
|
* @return number
|
||||||
*/
|
*/
|
||||||
function local_webhooks_create_record($record) {
|
function local_webhooks_create_record($record) {
|
||||||
global $DB;
|
global $DB;
|
||||||
@ -98,7 +98,7 @@ function local_webhooks_create_record($record) {
|
|||||||
|
|
||||||
$result = $DB->insert_record("local_webhooks_service", $record, true, false);
|
$result = $DB->insert_record("local_webhooks_service", $record, true, false);
|
||||||
local_webhooks_events::service_added($result);
|
local_webhooks_events::service_added($result);
|
||||||
return boolval($result);
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user