Skip to content

Commit

Permalink
コメントの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
stz2012 committed Aug 3, 2012
1 parent a3c4e3a commit 5f673ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 4 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@
$tvtimes[$i] = date("H", $top_time + 3600 * $i );
}


// 番組表
$programs = array();
// チャンネルマップ
$tmprec = new DBRecord(CHANNEL_TBL);
$recarr = $tmprec->fetch_array( "type", $type, "id > 0 ORDER BY sid ASC" );
foreach( $recarr as $val) {
$channel_map["{$val['channel_disc']}"] = $val['channel'];
}

// 番組表
$programs = array();
$st = 0;
$prec = null;
try {
Expand Down
4 changes: 1 addition & 3 deletions storeProgram.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ function doKeywordReservation() {

function storeProgram( $type, $xmlfile ) {
global $settings;

// チャンネルマップファイルの準備
$map = array();

// XML parse
Expand Down Expand Up @@ -67,7 +65,7 @@ function storeProgram( $type, $xmlfile ) {
// 存在した場合も、とりあえずチャンネル名は更新する
$rec = new DBRecord(CHANNEL_TBL, "channel_disc", $disc );
$rec->name = $ch->{'display-name'};
// BS/CSの場合、チャンネル番号とSIDをチャンネルマップより更新
// BS/CSの場合、チャンネル番号とSIDを更新
if ( $type == "BS" || $type == "CS" )
{
$rec->channel = $map["$disc"];
Expand Down

0 comments on commit 5f673ba

Please sign in to comment.