Index: trunk/install/php/reserveepgcomp.php =================================================================== --- trunk/install/php/reserveepgcomp.php (リビジョン 70) +++ trunk/install/php/reserveepgcomp.php (リビジョン 83) @@ -78,6 +78,11 @@ }else{ $rowdata = pg_fetch_row($rs, 0); + $insertpid = $rowdata[0]; - $insertpid-- ; + if ($insertpid > 0){ + $insertpid = -1; + }else{ + $insertpid-- ; + } } // next 話数を探す @@ -121,5 +126,4 @@ values ( '$insertpid','0','$stationid', '$nextcno','$subtitle','$startdatetime','$enddatetime','0' ,'$lengthmin' , '$memberid')"; - $rs = m_query($con, $query, "DBクエリに失敗しました"); @@ -143,8 +147,5 @@ } -?> - - 放送開始$startdatetime