From b2973aa6a2ac90d6fefa8ac04720586746a977e1 Mon Sep 17 00:00:00 2001 From: Danny Gershman Date: Mon, 4 Mar 2019 07:21:11 -0500 Subject: [PATCH] need to have a default parameter --- endpoints/_includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/_includes/functions.php b/endpoints/_includes/functions.php index 34bc57273..81f7f6a9f 100644 --- a/endpoints/_includes/functions.php +++ b/endpoints/_includes/functions.php @@ -766,7 +766,7 @@ function admin_GetUserName() { return isset($get_user_info_response->current_user) ? $get_user_info_response->current_user->name : $_SESSION['username']; } -function admin_PersistDbConfig($service_body_id, $data, $data_type, $parent_id) { +function admin_PersistDbConfig($service_body_id, $data, $data_type, $parent_id = 0) { $db = new Database(); $current_data_check = isset($parent_id) && $parent_id > 0 ? getDbDataByParentId($parent_id, $data_type) : getDbData($service_body_id, $data_type);