From 7e1284bfe2eb87e70aacf125186b86174ff63411 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 27 Dec 2017 15:29:58 +0400 Subject: Edit the result of the function --- lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib.php') diff --git a/lib.php b/lib.php index f22c61b..ddfeceb 100644 --- a/lib.php +++ b/lib.php @@ -86,8 +86,8 @@ function local_webhooks_get_list_records($limitfrom = 0, $limitnum = 0) { /** * Create an entry in the database. * - * @param object $record - * @return boolean + * @param object $record + * @return number */ function local_webhooks_create_record($record) { global $DB; @@ -98,7 +98,7 @@ function local_webhooks_create_record($record) { $result = $DB->insert_record("local_webhooks_service", $record, true, false); local_webhooks_events::service_added($result); - return boolval($result); + return $result; } /** -- cgit v1.2.3