Mercurial > epgrec.yaz
changeset 57:73350e16077a
fix: bug
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 29 Jul 2009 10:51:38 +0900 |
parents | be9e4520cfec |
children | 80dc62c94185 |
files | getepg.php index.php programTable.php |
diffstat | 3 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/getepg.php Tue Jul 28 23:35:31 2009 +0900 +++ b/getepg.php Wed Jul 29 10:51:38 2009 +0900 @@ -12,7 +12,7 @@ if( file_exists( $settings->temp_xml ) ) @unlink( $settings->temp_xml ); // BSを処理する - if( $settings->bs_tuners ) { + if( $settings->bs_tuners != 0 ) { // 録画重複チェック $num = DBRecord::countRecords( RESERVE_TBL, "WHERE complete = '0' AND type = 'BS' AND endtime > now() AND starttime < addtime( now(), '00:03:05')" ); if( $num == 0 ) { @@ -27,7 +27,7 @@ } // 地上波を処理する - if( $settings->gr_tuners ) { + if( $settings->gr_tuners != 0 ) { foreach( $GR_CHANNEL_MAP as $key=>$value ){ // 録画重複チェック $num = DBRecord::countRecords( RESERVE_TBL, "WHERE complete = '0' AND type = 'GR' AND endtime > now() AND starttime < addtime( now(), '00:01:10')" );
--- a/index.php Tue Jul 28 23:35:31 2009 +0900 +++ b/index.php Wed Jul 29 10:51:38 2009 +0900 @@ -146,13 +146,13 @@ // タイプ選択 $types = array(); $i = 0; - if( $settings->bs_tuners ) { + if( $settings->bs_tuners != 0 ) { $types[$i]['selected'] = $type == "BS" ? 'class="selected"' : ""; $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=BS&length=".$program_length."&time=".date( "YmdH", $top_time); $types[$i]['name'] = "BS"; $i++; } - if( $settings->gr_tuners ) { + if( $settings->gr_tuners != 0 ) { $types[$i]['selected'] = $type == "GR" ? 'class="selected"' : ""; $types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=GR&length=".$program_length."&time=".date( "YmdH", $top_time); $types[$i]['name'] = "地上デジタル";
--- a/programTable.php Tue Jul 28 23:35:31 2009 +0900 +++ b/programTable.php Wed Jul 29 10:51:38 2009 +0900 @@ -97,14 +97,14 @@ $types[0]['name'] = "すべて"; $types[0]['value'] = "*"; $types[0]['selected'] = $type == "*" ? "selected" : ""; - if( $settings->gr_tuners ) { + if( $settings->gr_tuners != 0 ) { $arr = array(); $arr['name'] = "GR"; $arr['value'] = "GR"; $arr['selected'] = $type == "GR" ? "selected" : ""; array_push( $types, $arr ); } - if( $settings->bs_tuners ) { + if( $settings->bs_tuners != 0 ) { $arr = array(); $arr['name'] = "BS"; $arr['value'] = "BS"; @@ -146,4 +146,4 @@ catch( exception $e ) { exit( $e->getMessage() ); } -?> \ No newline at end of file +?>