diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2007-10-12 06:41:33 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2007-10-12 06:41:33 +0000 |
commit | b2b80439dfb4078a003b0a768c634b50759ddcb0 (patch) | |
tree | 999fce06df2493b1a0f090c2e97f72ba59602913 /functions/ical_parser.php | |
parent | 86d615c773ff5cddb28d24064157b94d61695ac4 (diff) | |
download | phpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.tar.gz phpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.tar.bz2 phpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.zip |
deal with various unset variable warning situations
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r-- | functions/ical_parser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 008ab86..6defc11 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -134,7 +134,7 @@ foreach ($cal_filelist as $cal_key=>$filename) { $nextline = fgets($ifile, 1024); $nextline = ereg_replace("[\r\n]", "", $nextline); #handle continuation lines that start with either a space or a tab (MS Outlook) - while ($nextline{0} == " " || $nextline{0} == "\t") { + while (isset($nextline{0}) && ($nextline{0} == " " || $nextline{0} == "\t")) { $line = $line . substr($nextline, 1); $nextline = fgets($ifile, 1024); $nextline = ereg_replace("[\r\n]", "", $nextline); |