diff options
author | pb1dft <pb1dft@ampache> | 2007-02-27 18:12:42 +0000 |
---|---|---|
committer | pb1dft <pb1dft@ampache> | 2007-02-27 18:12:42 +0000 |
commit | 055195b302f0a2521a8b3a7f57e385a2aa03fdc2 (patch) | |
tree | 84077ad5b5912c597b7ff8dd263a9ca8c7629e4d /browse.php | |
parent | 28adccb76ae99f07cb8ca9e39355ab916b2b2f83 (diff) | |
download | ampache-055195b302f0a2521a8b3a7f57e385a2aa03fdc2.tar.gz ampache-055195b302f0a2521a8b3a7f57e385a2aa03fdc2.tar.bz2 ampache-055195b302f0a2521a8b3a7f57e385a2aa03fdc2.zip |
Updated all offset_limit refs to ->pref['offset_limit']
Diffstat (limited to 'browse.php')
-rw-r--r-- | browse.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -62,7 +62,7 @@ switch($action) { elseif ($sql) { $db_results = mysql_query($sql, dbh()); $total_items = mysql_num_rows($db_results); - if ($match != "Show_all") { $offset_limit = $_SESSION['userdata']['offset_limit']; } + if ($match != "Show_all") { $offset_limit = $user->prefs['offset_limit']; } $view = new View($sql, 'albums.php','name',$total_items,$offset_limit); } @@ -95,7 +95,7 @@ switch($action) { $db_results = mysql_query($sql, dbh()); $total_items = mysql_num_rows($db_results); $offset_limit = 999999; - if ($match != 'Show_All') { $offset_limit = $_SESSION['userdata']['offset_limit']; } + if ($match != 'Show_All') { $offset_limit = $user->prefs['offset_limit']; } $view = new View($sql, 'browse.php?action=genre','name',$total_items,$offset_limit); } @@ -133,7 +133,7 @@ switch($action) { $db_results = mysql_query($sql, dbh()); $total_items = mysql_num_rows($db_results); $offset_limit = 999999; - if ($match != 'Show All') { $offset_limit = $_SESSION['userdata']['offset_limit']; } + if ($match != 'Show All') { $offset_limit = $user->prefs['offset_limit']; } $view = new View($sql, 'browse.php?action=song_title','title',$total_items,$offset_limit); } |