aboutsummaryrefslogtreecommitdiff
path: root/lib.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-27 14:29:58 +0300
committerValentin Popov <info@valentineus.link>2017-12-27 14:29:58 +0300
commit7e1284bfe2eb87e70aacf125186b86174ff63411 (patch)
treea356e3533623d66ab21b2dd351c160c0dbdd8a08 /lib.php
parent785a541d1cfdbbfffbd3dc49d667a0f50aa2de28 (diff)
downloadlocal_webhooks-7e1284bfe2eb87e70aacf125186b86174ff63411.tar.xz
local_webhooks-7e1284bfe2eb87e70aacf125186b86174ff63411.zip
Edit the result of the function
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php6
1 files changed, 3 insertions, 3 deletions
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;
}
/**