diff options
author | jwangen <jwangen> | 2002-11-01 19:13:45 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-11-01 19:13:45 +0000 |
commit | 405e76ca59ed46f0af3a7e518c62cda469c1519c (patch) | |
tree | b03204b6adb66e16034206c5fafccf531bb6cd76 /functions | |
parent | b498e8c70d7ee2f4dd7b5b3afd20a2c808cc4045 (diff) | |
download | phpicalendar-405e76ca59ed46f0af3a7e518c62cda469c1519c.tar.gz phpicalendar-405e76ca59ed46f0af3a7e518c62cda469c1519c.tar.bz2 phpicalendar-405e76ca59ed46f0af3a7e518c62cda469c1519c.zip |
Fixed bug in month where next month and previous month wasn't working for
certain days of certain months.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index f33ebdc..7bdc32a 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -78,11 +78,11 @@ if ($parse_file) { while (!feof($ifile)) { $line = $nextline; $nextline = fgets($ifile, 1024); - $nextline = ereg_replace("\r\n", "", $nextline); + $nextline = ereg_replace("[\r\n]", "", $nextline); while (substr($nextline, 0, 1) == " ") { $line = $line . substr($nextline, 1); $nextline = fgets($ifile, 1024); - $nextline = ereg_replace("\r\n", "", $nextline); + $nextline = ereg_replace("[\r\n]", "", $nextline); } $line = trim($line); if (stristr($line, 'BEGIN:VEVENT')) { |