diff getepg.php @ 57:73350e16077a

fix: bug
author Sushi-k <epgrec@park.mda.or.jp>
date Wed, 29 Jul 2009 10:51:38 +0900
parents 4def2b564161
children 3d59472e08dd
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')" );