summaryrefslogtreecommitdiffstats
path: root/templates/list_header.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-06 18:21:15 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-06 18:21:15 +0000
commitcaaf0f6e12a52bed50bde91644dff565b90e4325 (patch)
tree1a3629ce0d73b108e6649f560331f50c12342655 /templates/list_header.inc
parentf175c68f5de5631846084ef6159896d596ebc299 (diff)
downloadampache-caaf0f6e12a52bed50bde91644dff565b90e4325.tar.gz
ampache-caaf0f6e12a52bed50bde91644dff565b90e4325.tar.bz2
ampache-caaf0f6e12a52bed50bde91644dff565b90e4325.zip
dont track stats on a batch download.. thats just insane
Diffstat (limited to 'templates/list_header.inc')
-rw-r--r--templates/list_header.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/list_header.inc b/templates/list_header.inc
index 08812014..58c7fa61 100644
--- a/templates/list_header.inc
+++ b/templates/list_header.inc
@@ -41,6 +41,7 @@ $prev_offset = $GLOBALS['view']->offset - $GLOBALS['view']->offset_limit;
if ($prev_offset < 0) { $prev_offset = '0'; }
/* Calculate how many pages total exist */
+if (!$GLOBALS['view']->offset_limit) { $GLOBALS['view']->offset_limit = '50'; }
$pages = ceil($total_items/$GLOBALS['view']->offset_limit);
/* Calculate current page and how many we have on each side */