changeset 95:d9b9d1d903a1

fix: ?????
author epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
date Wed, 03 Mar 2010 00:02:15 +0900
parents 12ed8ad837fc
children b0095925b3da 57676bb30f64
files getepg.old.php storeProgram.php
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/getepg.old.php	Tue Mar 02 23:35:28 2010 +0900
+++ b/getepg.old.php	Wed Mar 03 00:02:15 2010 +0900
@@ -113,7 +113,7 @@
 		$num = DBRecord::countRecords( CHANNEL_TBL , "WHERE channel_disc = '" . $disc ."'" );
 		if( $num == 0 ) {
 			// channel discがないようなら飛ばす
-			if( array_key_exists( $disc, $map ) ) {
+			if( array_key_exists( "$disc", $map ) ) {
 				// チャンネルデータがないなら新規作成
 				$rec = new DBRecord( CHANNEL_TBL );
 				$rec->type = $type;
--- a/storeProgram.php	Tue Mar 02 23:35:28 2010 +0900
+++ b/storeProgram.php	Wed Mar 03 00:02:15 2010 +0900
@@ -87,7 +87,7 @@
 		// チャンネルデータを探す
 		$num = DBRecord::countRecords( CHANNEL_TBL , "WHERE channel_disc = '" . $disc ."'" );
 		if( $num == 0 ) {
-			if( array_key_exists( $disc, $map ) ) {
+			if( array_key_exists( "$disc", $map ) ) {
 				// チャンネルデータがないなら新規作成
 				$rec = new DBRecord( CHANNEL_TBL );
 				$rec->type = $type;