aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r--functions/ical_parser.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 3db6e3f..6f8111d 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -87,10 +87,9 @@ foreach ($cal_filelist as $cal_key=>$filename) {
$is_webcal = FALSE;
if (substr($filename, 0, 7) == 'http://' || substr($filename, 0, 8) == 'https://' || substr($filename, 0, 9) == 'webcal://') {
$is_webcal = TRUE;
- $cal_webcalPrefix = str_replace('http://','webcal://',$filename);
- $cal_httpPrefix = str_replace('webcal://','http://',$filename);
- $cal_httpsPrefix = str_replace('webcal://','https://',$filename);
- $cal_httpsPrefix = str_replace('http://','https://',$cal_httpsPrefix);
+ $cal_webcalPrefix = str_replace(array('http://', 'https://'), 'webcal://', $filename);
+ $cal_httpPrefix = str_replace(array('webcal://', 'https://'), 'http://', $filename);
+ $cal_httpsPrefix = str_replace(array('http://', 'webcal://'), 'https://', $filename);
$filename = $cal_httpPrefix;
$master_array['-4'][$calnumber]['webcal'] = 'yes';
$actual_mtime = time();

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