From 65c00ba1223eb97ff618fd661402a74c037c58cd Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 26 Dec 2008 17:07:52 +0000 Subject: squelch warnings in event.php --- functions/parse/parse_tzs.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'functions/parse') diff --git a/functions/parse/parse_tzs.php b/functions/parse/parse_tzs.php index 734851e..8b02cb5 100644 --- a/functions/parse/parse_tzs.php +++ b/functions/parse/parse_tzs.php @@ -54,13 +54,13 @@ while (!feof($ifile)) { ); #echo "
$tz_id"; print_r($tz_array[$tz_id]);echo"
"; break; default: - unset ( $data, $prop_pos, $property); - if (ereg ("([^:]+):(.*)", $line, $arr)){ - $property = $arr[1]; - $data = $arr[2]; + unset ($field, $data, $prop_pos, $property); + if (ereg ("([^:]+):(.*)", $line, $line)){ + $field = $line[1]; + $data = $line[2]; + $property = strtoupper($field); $prop_pos = strpos($property,';'); if ($prop_pos !== false) $property = substr($property,0,$prop_pos); - $property = strtoupper($property); switch ($property) { case 'TZID': $tz_id = $data; -- cgit v1.2.3