@@ 355-364 (lines=10) @@ | ||
352 | ); |
|
353 | ||
354 | if ($userId) { |
|
355 | if (api_is_multiple_url_enabled()) { |
|
356 | if (api_get_current_access_url_id() != -1) { |
|
357 | UrlManager::add_user_to_url($userId, api_get_current_access_url_id()); |
|
358 | } else { |
|
359 | UrlManager::add_user_to_url($userId, 1); |
|
360 | } |
|
361 | } else { |
|
362 | // We add by default the access_url_user table with access_url_id = 1 |
|
363 | UrlManager::add_user_to_url($userId, 1); |
|
364 | } |
|
365 | ||
366 | // Save new field label into user_field table. |
|
367 | UserManager::create_extra_field( |
|
@@ 583-592 (lines=10) @@ | ||
580 | ); |
|
581 | ||
582 | if ($userId) { |
|
583 | if (api_is_multiple_url_enabled()) { |
|
584 | if (api_get_current_access_url_id() != -1) { |
|
585 | UrlManager::add_user_to_url($userId, api_get_current_access_url_id()); |
|
586 | } else { |
|
587 | UrlManager::add_user_to_url($userId, 1); |
|
588 | } |
|
589 | } else { |
|
590 | // We add by default the access_url_user table with access_url_id = 1 |
|
591 | UrlManager::add_user_to_url($userId, 1); |
|
592 | } |
|
593 | ||
594 | // Save new fieldlabel into user_field table. |
|
595 | UserManager::create_extra_field( |
|
@@ 917-926 (lines=10) @@ | ||
914 | $sql = "UPDATE $table_user SET user_id = id WHERE id = $return"; |
|
915 | Database::query($sql); |
|
916 | ||
917 | if (api_is_multiple_url_enabled()) { |
|
918 | if (api_get_current_access_url_id() != -1) { |
|
919 | UrlManager::add_user_to_url($return, api_get_current_access_url_id()); |
|
920 | } else { |
|
921 | UrlManager::add_user_to_url($return, 1); |
|
922 | } |
|
923 | } else { |
|
924 | // We add by default the access_url_user table with access_url_id = 1 |
|
925 | UrlManager::add_user_to_url($return, 1); |
|
926 | } |
|
927 | // Save new fieldlabel into user_field table. |
|
928 | $field_id = UserManager::create_extra_field( |
|
929 | $original_user_id_name, |