diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2012-09-20 11:06:46 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-09-20 11:22:48 -0400 |
commit | bba378c39b0f301a5c85b0baa115a541bb0274c3 (patch) | |
tree | 124a63476ecd5f3e3f63a01b2410a4ea4d5c828e | |
parent | de300b2c167db9f7e9771c13e1f9be2a8589bdb8 (diff) | |
download | ampache-bba378c39b0f301a5c85b0baa115a541bb0274c3.tar.gz ampache-bba378c39b0f301a5c85b0baa115a541bb0274c3.tar.bz2 ampache-bba378c39b0f301a5c85b0baa115a541bb0274c3.zip |
Cosmetics: xmlData::songs
-rw-r--r-- | lib/class/xmldata.class.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index 24cd2ba0..c736569a 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -404,15 +404,13 @@ class xmlData { /** * songs * - * This returns an xml document from an array of song ids spiffy isn't it! - * - * @param array $songs (description here...) - * @return string return xml + * This returns an xml document from an array of song ids. + * (Spiffy isn't it!) */ public static function songs($songs) { if (count($songs) > self::$limit OR self::$offset > 0) { - $songs = array_slice($songs,self::$offset,self::$limit); + $songs = array_slice($songs, self::$offset, self::$limit); } Song::build_cache($songs); @@ -456,9 +454,7 @@ class xmlData { } // end foreach - $final = self::_header() . $string . self::_footer(); - - return $final; + return self::_header() . $string . self::_footer(); } // songs |