Skip to content

Commit

Permalink
need to have a default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dgershman committed Mar 4, 2019
1 parent 01f51f7 commit b2973aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion endpoints/_includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b2973aa

Please sign in to comment.