From e38f8db3c89651872165cef5631eb054c6a426b0 Mon Sep 17 00:00:00 2001 From: vthierry <thierry.vieville@inria.fr> Date: Thu, 11 Oct 2018 00:06:01 +0200 Subject: [PATCH] . --- oc_api/OpenClassroomsAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oc_api/OpenClassroomsAPI.php b/oc_api/OpenClassroomsAPI.php index 40dfc3b..3c8927b 100644 --- a/oc_api/OpenClassroomsAPI.php +++ b/oc_api/OpenClassroomsAPI.php @@ -442,8 +442,8 @@ class OpenClassroomsAPI { $httpkeys_file = plugin_dir_path( __FILE__ ).'.httpkeys'; if (is_file($httpkeys_file)) { include($httpkeys_file); - if (!(isset(self::$httpkeys) && isset(self::$httpkeys['OAuth2/client_id']) && isset(self::$httpkeys['OAuth2/basic_auth']) && isset(self::$httpkeys['OAuth2/reditect_uri']))) - self::reportLog("OpenClassroomsAPI::getAuth: Bad '.httpkeys' file format #".isset(self::$httpkeys)."-".isset(self::$httpkeys['OAuth2/client_id'])."-".isset(self::$httpkeys['OAuth2/basic_auth'])."-".isset(self::$httpkeys['OAuth2/reditect_uri'])); + if (!(isset($httpkeys) && isset($httpkeys['OAuth2/client_id']) && isset($httpkeys['OAuth2/basic_auth']) && isset($httpkeys['OAuth2/reditect_uri']))) + self::reportLog("OpenClassroomsAPI::getAuth: Bad '.httpkeys' file format #".isset($httpkeys)."-client_id:".isset($httpkeys['OAuth2/client_id'])."-basic_auth:".isset($httpkeys['OAuth2/basic_auth'])."-reditect_uri:".isset($httpkeys['OAuth2/reditect_uri'])); } else { self::reportLog("OpenClassroomsAPI::getAuth: Unable to read the '.httpkeys' file"); exit(0); -- GitLab