From 6836dee9183062225cf3095cafc07f5fe928af13 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 18 Dec 2003 05:46:56 +0000 Subject: Fixed a bug where HTTP was being used, even if turned off in config. --- functions/calendar_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions/calendar_functions.php') diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php index 45cf670..4c2f7a3 100644 --- a/functions/calendar_functions.php +++ b/functions/calendar_functions.php @@ -21,7 +21,7 @@ function availableCalendars($username, $password, $cal_filename, $admin = false) // Grab any HTTP authentication. unset($http_user); - if (isset($_SERVER['PHP_AUTH_USER'])) { + if ((isset($_SERVER['PHP_AUTH_USER'])) && ($allow_login == 'yes')) { $http_user = $_SERVER['PHP_AUTH_USER']; } -- cgit v1.2.3