diff getepg.php @ 64:b7d8699a955c

change: preg_replace to str_replace
author yoneda <yoneda@recorder.localnet.mda.or.jp>
date Fri, 14 Aug 2009 13:21:36 +0900
parents 3d59472e08dd
children a2c4665b310c
line wrap: on
line diff
--- a/getepg.php	Fri Aug 14 13:02:45 2009 +0900
+++ b/getepg.php	Fri Aug 14 13:21:36 2009 +0900
@@ -111,8 +111,8 @@
 	foreach( $xml->programme as $program ) {
 		$channel_disc = $program['channel']; 
 		$channel = $map["$channel_disc"];
-		$starttime = preg_replace(" \+0900", '', $program['start'] );
-		$endtime = preg_replace( " \+0900", '', $program['stop'] );
+		$starttime = str_replace(" +0900", '', $program['start'] );
+		$endtime = str_replace( " +0900", '', $program['stop'] );
 		$title = $program->title;
 		$desc = $program->desc;
 		$cat_ja = "";