Petit probleme de decompte : si n personnes en tout viennent (donc moi compris),...
[platal.git] / include / synchro_ax.inc.php
index ab0c8b6..4daf7f8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -26,15 +26,13 @@ require_once('user.func.inc.php');
 
 function is_ax_key_missing() {
     global $globals;
-    return !$globals->webservice->private_key_ax || !is_file($globals->webservice->private_key_ax);
+    return !isset($globals->webservice->private_key_ax) || !is_file($globals->webservice->private_key_ax);
 }
 
 function get_user_ax($matricule_ax, $raw=false)
 {
     require_once('webservices/ax/client.inc');
 
-    global $globals;
-
     $ancien = recupere_infos_ancien($matricule_ax);
 
     $userax = Array();