Browse Source

[svn r10004] bugfix for replacing $_uid with $_user['user_id']

Patrick Cool 18 years ago
parent
commit
2ca91996ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/main_api.lib.php

+ 1 - 1
main/inc/lib/main_api.lib.php

@@ -352,7 +352,7 @@ function api_get_path($path_type)
 */
 function api_get_user_id()
 {
-	return $GLOBALS[$_user]['user_id'];
+	return $GLOBALS['_user']['user_id'];
 }
 /**
  * @param $user_id (integer): the id of the user