From: Platonides Date: Sun, 12 Feb 2012 17:47:39 +0000 (+0000) Subject: Useless wrapping on an anonymous function. Follow-up r111264 X-Git-Tag: 1.31.0-rc.0~24754 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=3ea6b6b008fba6a5c885c3e27581d4e6195b052a;p=lhc%2Fweb%2Fwiklou.git Useless wrapping on an anonymous function. Follow-up r111264 --- diff --git a/includes/DBDataObject.php b/includes/DBDataObject.php index 812a86d6a9..f2bd5d791c 100644 --- a/includes/DBDataObject.php +++ b/includes/DBDataObject.php @@ -895,7 +895,7 @@ abstract class DBDataObject { if ( $collapse ) { if ( count( $fields ) === 1 ) { - $objects = array_map( function( $object ) { return array_shift( $object ); } , $objects ); + $objects = array_map( 'array_shift', $objects ); } elseif ( count( $fields ) === 2 ) { $o = array();