svnno****@sourc*****
svnno****@sourc*****
2009年 1月 21日 (水) 02:39:23 JST
Revision: 159 http://svn.sourceforge.jp/view?root=cinemaru&view=rev&rev=159 Author: asben Date: 2009-01-21 02:39:22 +0900 (Wed, 21 Jan 2009) Log Message: ----------- 1ページに表示するサムネイル数の設定が登録されている動画のトータルより大きい場合、$lastが負の値になるのを0になる様に修正。 Modified Paths: -------------- trunk/cinemaru/include/pagenavi.class.php Modified: trunk/cinemaru/include/pagenavi.class.php =================================================================== --- trunk/cinemaru/include/pagenavi.class.php 2009-01-12 16:08:40 UTC (rev 158) +++ trunk/cinemaru/include/pagenavi.class.php 2009-01-20 17:39:22 UTC (rev 159) @@ -62,7 +62,10 @@ function get_last() { - return $this->total - $this->limit; + if($this->total<$this->limit) + return 0; + else + return $this->total - $this->limit; } function get_page_list()