OSDN Git Service

fix: bug
authorSushi-k <epgrec@park.mda.or.jp>
Wed, 29 Jul 2009 01:51:38 +0000 (10:51 +0900)
committerSushi-k <epgrec@park.mda.or.jp>
Wed, 29 Jul 2009 01:51:38 +0000 (10:51 +0900)
getepg.php
index.php
programTable.php

index ba6f5eb..66c31c3 100755 (executable)
@@ -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')" );
index 76ba5d4..485de4f 100755 (executable)
--- 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'] = "地上デジタル";
index 41ab318..ebab485 100755 (executable)
@@ -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
+?>