Minor - define global to remove notice

skala
ywarnier 14 years ago
parent cc5d8dc4f5
commit 1892049073
  1. 2
      main/webservices/webservice_user.php

@ -222,6 +222,7 @@ class WSUser extends WS {
* @return mixed New user id generated by the system, WSError otherwise
*/
protected function createUserHelper($firstname, $lastname, $status, $login, $password, $encrypt_method, $user_id_field_name, $user_id_value, $visibility, $email, $language, $phone, $expiration_date, $extras) {
global $api_failureList;
// Add the original user id field name and value to the extra fields if needed
$extras_associative = array();
if($user_id_field_name != "chamilo_user_id") {
@ -332,6 +333,7 @@ class WSUser extends WS {
* @return mixed True if user was successfully updated, WSError otherwise
*/
protected function editUserHelper($user_id_field_name, $user_id_value, $firstname, $lastname, $status, $loginname, $password, $encrypt_method, $email, $language, $phone, $expiration_date, $extras) {
global $api_failureList;
$user_id = $this->getUserId($user_id_field_name, $user_id_value);
if($user_id instanceof WSError) {
return $user_id;

Loading…
Cancel
Save