diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-11-18 16:56:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-11-18 16:56:45 +0000 |
commit | 9f97853579cc550fc289cbb4011f94f5f6f5b1c7 (patch) | |
tree | 13b84d87d0cb72d365770784f6382bd1808fc547 /lib/class/xmldata.class.php | |
parent | 560f427d38988165079911028d5c33ef30f2b75f (diff) | |
download | ampache-9f97853579cc550fc289cbb4011f94f5f6f5b1c7.tar.gz ampache-9f97853579cc550fc289cbb4011f94f5f6f5b1c7.tar.bz2 ampache-9f97853579cc550fc289cbb4011f94f5f6f5b1c7.zip |
Fix xml response so offset is used even if limit is not reached
Diffstat (limited to 'lib/class/xmldata.class.php')
-rw-r--r-- | lib/class/xmldata.class.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index de9c9544..c1f027be 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -175,7 +175,7 @@ class xmlData { */ public static function tags($tags) { - if (count($tags) > self::$limit) { + if (count($tags) > self::$limit OR self::$offset > 0) { $tags = array_splice($tags,self::$offset,self::$limit); } @@ -208,7 +208,7 @@ class xmlData { */ public static function artists($artists) { - if (count($artists) > self::$limit) { + if (count($artists) > self::$limit OR self::$offset > 0) { $artists = array_splice($artists,self::$offset,self::$limit); } @@ -245,7 +245,7 @@ class xmlData { */ public static function albums($albums) { - if (count($albums) > self::$limit) { + if (count($albums) > self::$limit OR self::$offset > 0) { $albums = array_splice($albums,self::$offset,self::$limit); } @@ -293,7 +293,7 @@ class xmlData { */ public static function playlists($playlists) { - if (count($playlists) > self::$limit) { + if (count($playlists) > self::$limit OR self::$offset > 0) { $playlists = array_slice($playlists,self::$offset,self::$limit); } @@ -329,7 +329,7 @@ class xmlData { */ public static function songs($songs) { - if (count($songs) > self::$limit) { + if (count($songs) > self::$limit OR self::$offset > 0) { $songs = array_slice($songs,self::$offset,self::$limit); } @@ -386,7 +386,7 @@ class xmlData { */ public static function videos($videos) { - if (count($videos) > self::$limit) { + if (count($videos) > self::$limit OR self::$offset > 0) { $videos = array_slice($videos,self::$offset,self::$limit); } |