From b2b80439dfb4078a003b0a768c634b50759ddcb0 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 12 Oct 2007 06:41:33 +0000 Subject: deal with various unset variable warning situations --- functions/ical_parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions/ical_parser.php') 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); -- cgit v1.2.3