From: Sushi-k Date: Wed, 29 Jul 2009 01:51:38 +0000 (+0900) Subject: fix: bug X-Git-Url: http://git.osdn.net/view?p=epgrec%2Fepgrec.git;a=commitdiff_plain;h=4a9fdaac092854ec6c864c17cc04a6221648725c fix: bug --- diff --git a/getepg.php b/getepg.php index ba6f5eb..66c31c3 100755 --- a/getepg.php +++ b/getepg.php @@ -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')" ); diff --git a/index.php b/index.php index 76ba5d4..485de4f 100755 --- a/index.php +++ b/index.php @@ -146,13 +146,13 @@ $last_time = $top_time + 3600 * $program_length; // タイプ選択 $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'] = "地上デジタル"; diff --git a/programTable.php b/programTable.php index 41ab318..ebab485 100755 --- a/programTable.php +++ b/programTable.php @@ -97,14 +97,14 @@ try{ $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 @@ try{ catch( exception $e ) { exit( $e->getMessage() ); } -?> \ No newline at end of file +?>