Skip to content

Commit

Permalink
番組表をservice_id順に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
stz2012 committed Aug 3, 2012
1 parent 66c1ec5 commit a3c4e3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// 番組表
$programs = array();
$tmprec = new DBRecord(CHANNEL_TBL);
$recarr = $tmprec->fetch_array( "type", $type );
$recarr = $tmprec->fetch_array( "type", $type, "id > 0 ORDER BY sid ASC" );
foreach( $recarr as $val) {
$channel_map["{$val['channel_disc']}"] = $val['channel'];
}
Expand Down
4 changes: 1 addition & 3 deletions storeProgram.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ function storeProgram( $type, $xmlfile ) {
$rec->channel = $map["$disc"];
$rec->channel_disc = $disc;
$rec->name = $ch->{'display-name'};
// BS/CSの場合、SIDをチャンネルマップより設定
if ( $type == "BS" || $type == "CS" )
$rec->sid = $sid;
$rec->sid = $sid;
}
else {
// 存在した場合も、とりあえずチャンネル名は更新する
Expand Down

0 comments on commit a3c4e3a

Please sign in to comment.