Mercurial > epgrec.yaz
comparison storeProgram.inc.php @ 170:1c4558d1a449
merged with upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 18 Apr 2010 22:48:48 +0900 |
parents | e379552d084c |
children |
comparison
equal
deleted
inserted
replaced
168:4dee3368df63 | 170:1c4558d1a449 |
---|---|
189 $rec->description = $desc; | 189 $rec->description = $desc; |
190 $rec->category_id = $cat_rec->id; | 190 $rec->category_id = $cat_rec->id; |
191 | 191 |
192 try { | 192 try { |
193 $reserve = new DBRecord( RESERVE_TBL, "program_id", $rec->id ); | 193 $reserve = new DBRecord( RESERVE_TBL, "program_id", $rec->id ); |
194 if( $reserve->dirty == 0 ) { | 194 // dirtyが立っておらず現在より後の録画予約であるなら |
195 if( ($reserve->dirty == 0) && (toTimestamp($reserve->starttime) > time()) ) { | |
195 $reserve->title = $title; | 196 $reserve->title = $title; |
196 $reserve->description = $desc; | 197 $reserve->description = $desc; |
197 reclog( "getepg:: 予約ID".$reserve->id."のEPG情報が更新された" ); | 198 reclog( "getepg:: 予約ID".$reserve->id."のEPG情報が更新された" ); |
198 } | 199 } |
199 } | 200 } |