Mercurial > epgrec.yaz
changeset 51:31f73a50ae33
fix: bug
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Tue, 28 Jul 2009 19:25:54 +0900 |
parents | c18851a70d33 |
children | f1ca253afc2f |
files | index.php |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Tue Jul 28 19:18:00 2009 +0900 +++ b/index.php Tue Jul 28 19:25:54 2009 +0900 @@ -65,7 +65,7 @@ foreach( $reca as $prg ) { // 前プログラムとの空きを調べる $start = toTimestamp( $prg['starttime'] ); - if( $start - $prev_end ) { + if( ($start - $prev_end) > 0 ) { $height = ($start-$prev_end) * $settings->height_per_hour / 3600; $height = $height; $programs[$st]['list'][$num]['category_none'] = "none"; @@ -106,7 +106,7 @@ exit( $e->getMessage() ); } // 空きを埋める - if( $last_time - $prev_end ) { + if( ($last_time - $prev_end) > 0 ) { $height = ($last_time - $prev_end) * $settings->height_per_hour / 3600; $height = $height; $programs[$st]['list'][$num]['category_name'] = "none";