OSDN Git Service

fix: さらに修正
authorepgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
Tue, 2 Mar 2010 15:02:15 +0000 (00:02 +0900)
committerepgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
Tue, 2 Mar 2010 15:02:15 +0000 (00:02 +0900)
getepg.old.php
storeProgram.php

index aa7fdba..5fb4093 100755 (executable)
                $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;
index 63ae61e..b81e1dc 100755 (executable)
@@ -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;