aboutsummaryrefslogtreecommitdiffstats
path: root/functions/calendar_functions.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-12-18 05:46:56 +0000
committerChad Little <clittle@users.sourceforge.net>2003-12-18 05:46:56 +0000
commit6836dee9183062225cf3095cafc07f5fe928af13 (patch)
treefcc69e6a3bf4fa5d2aaed168472ada27e16e37da /functions/calendar_functions.php
parentd8dc3a393e776ade02e680f64787baac9b4397f7 (diff)
downloadphpicalendar-6836dee9183062225cf3095cafc07f5fe928af13.tar.gz
phpicalendar-6836dee9183062225cf3095cafc07f5fe928af13.tar.bz2
phpicalendar-6836dee9183062225cf3095cafc07f5fe928af13.zip
Fixed a bug where HTTP was being used, even if turned off in config.
Diffstat (limited to 'functions/calendar_functions.php')
-rw-r--r--functions/calendar_functions.php2
1 files changed, 1 insertions, 1 deletions
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'];
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy