diff --git a/main/inc/lib/api.lib.php b/main/inc/lib/api.lib.php index 41f3b1f4a6..5b7278871b 100644 --- a/main/inc/lib/api.lib.php +++ b/main/inc/lib/api.lib.php @@ -6813,7 +6813,7 @@ function api_get_user_info_from_official_code($official_code = '') { $result = Database::query($sql); if (Database::num_rows($result) > 0) { $result_array = Database::fetch_array($result); - return _api_format_user($result_array); + return api_format_user($result_array); } return false; }