From 15195facc2387c3fac215f69592dad350dc734ed Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 27 Oct 2006 14:40:41 +0000 Subject: two tiny bugfixes git-svn-id: file:///svn/phpbb/trunk@6532 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/auth/auth_apache.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'phpBB/includes/auth/auth_apache.php') diff --git a/phpBB/includes/auth/auth_apache.php b/phpBB/includes/auth/auth_apache.php index 35c266932c..4c8293c707 100644 --- a/phpBB/includes/auth/auth_apache.php +++ b/phpBB/includes/auth/auth_apache.php @@ -136,6 +136,13 @@ function autologin_apache() return ($row['user_type'] == USER_INACTIVE || $row['user_type'] == USER_IGNORE) ? array() : $row; } + if (!function_exists('user_add')) + { + global $phpbb_root_path, $phpEx; + + include($phpbb_root_path . 'includes/functions_user.' . $phpEx); + } + // create the user if he does not exist yet user_add(user_row_apache($php_auth_user, $php_auth_pw)); -- cgit v1.2.1