Browse Source

Fixing redirection see BT#8207

Julio Montoya 10 years ago
parent
commit
9b1ddc01c4
1 changed files with 3 additions and 2 deletions
  1. 3 2
      main/inc/lib/main_api.lib.php

+ 3 - 2
main/inc/lib/main_api.lib.php

@@ -3043,8 +3043,9 @@ function api_not_allowed($print_headers = false, $message = null)
 
     global $this_section;
 
-    if (!isset($user_id)) {
-        //Why the CustomPages::enabled() need to be to set the request_uri
+    if (empty($user_id)) {
+
+        // Why the CustomPages::enabled() need to be to set the request_uri
         $_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
     }