Mentions légales du service

Skip to content
Snippets Groups Projects
Commit fc18a99f authored by VIEVILLE Thierry's avatar VIEVILLE Thierry
Browse files

.

parent 88f07ae3
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
// require_once('../doc/error_for_all.php');
define('WP_USE_THEMES', false);
require_once("../../../../wp-load.php");
require_once("../doc/error_for_all.php");
$classcodeUrl='';
if(empty($_SERVER["HTTPS"])){
......
......@@ -414,7 +414,10 @@ class OpenClassroomsAPI {
$this->user_data = get_user_meta($user_id, 'OpenClassroomsAPI/UserData', true);
} else {
session_start();
$this->user_data = $_SESSION['OpenClassroomsAPI/UserData'];
if (isset($_SESSION['OpenClassroomsAPI/UserData']))
$this->user_data = $_SESSION['OpenClassroomsAPI/UserData'];
else
$this->user_data = array();
}
}
if ($value !== NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment