diff --git a/htdocs/api/class/api_status.class.php b/htdocs/api/class/api_status.class.php index 899bd1b40aa..4bbd4e93957 100644 --- a/htdocs/api/class/api_status.class.php +++ b/htdocs/api/class/api_status.class.php @@ -1,5 +1,7 @@ +/* + * Copyright (C) 2015 Jean-François Ferry + * Copyright (C) 2023 Christian Foellmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,13 +45,11 @@ class Status extends DolibarrApi */ public function index() { - global $conf; - return array( 'success' => array( 'code' => 200, 'dolibarr_version' => DOL_VERSION, - 'access_locked' => (!getDolGlobalString('MAIN_ONLY_LOGIN_ALLOWED') ? '0' : $conf->global->MAIN_ONLY_LOGIN_ALLOWED), + 'access_locked' => (!getDolGlobalString('MAIN_ONLY_LOGIN_ALLOWED') ? '0' : getDolGlobalString('MAIN_ONLY_LOGIN_ALLOWED')), ), ); }