changeset 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 f8af9716f021
files getepg.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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 = "";