diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 19:30:41 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 19:30:41 +0000 |
commit | d482264b6af8598ce50677ac6a8f781e219b7d6f (patch) | |
tree | 5bff034467e4ed8e1b1fe442c7de643f112da7f7 /functions/parse/parse_tzs.php | |
parent | fc3e1a8590046c858b2ddebdf6c43df8240e9a97 (diff) | |
download | phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.tar.gz phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.tar.bz2 phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.zip |
fix misc bugs; rewrite some places where warnings squelched with @; require php5.1 or greater
Diffstat (limited to 'functions/parse/parse_tzs.php')
-rw-r--r-- | functions/parse/parse_tzs.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/parse/parse_tzs.php b/functions/parse/parse_tzs.php index a135b0f..8b02cb5 100644 --- a/functions/parse/parse_tzs.php +++ b/functions/parse/parse_tzs.php @@ -1,8 +1,8 @@ <?php $ifile = @fopen($filename, "r"); -if ($ifile == FALSE) exit(error($lang['l_error_cantopen']." parse_tz", $filename)); +if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $filename)); $nextline = fgets($ifile); -if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal']." parse_tz", $filename)); +if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal'], $filename)); // read file in line by line // XXX end line is skipped because of the 1-line readahead |