Changeset 1676 for trunk/gregarius/cls

Show
Ignore:
Timestamp:
01/18/07 10:55:37 (21 months ago)
Author:
mbonetti
Message:

fix for a nasty div by zero. Props: VxJasonxV

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/cls/items.php

    r1673 r1676  
    544544        list($this -> numItems) = rss_fetch_row(rss_query($sql)); 
    545545         
    546         if ($this -> numItems > $this -> itemsPerPage) { 
     546        if ($this -> itemsPerPage && $this -> numItems > $this -> itemsPerPage) { 
    547547            $this -> navigation = new ItemListNavigation($this);             
    548548        }