Permalink
Browse files

Only return the collection configuration array.

Previously the array was wrapped in another array, which is very
unnecessary.
  • Loading branch information...
1 parent 40c7724 commit 5f9027dc8f7a8c99bf6b40232628c414e6406795 Michael Sisk committed Mar 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/php/tags.php
View
2 -/php/tags.php
@@ -23,7 +23,7 @@ public function __construct(){}
* @uses Webcomic::$collection
*/
public static function get_webcomic_collection( $config = false ) {
- return ( $config and isset( self::$config[ 'collections' ][ self::$collection ] ) ) ? array( self::$collection => self::$config[ 'collections' ][ self::$collection ] ) : self::$collection;
+ return ( $config and isset( self::$config[ 'collections' ][ self::$collection ] ) ) ? self::$config[ 'collections' ][ self::$collection ] : self::$collection;
}
/** Return all collection ID's or configurations.

0 comments on commit 5f9027d

Please sign in to comment.