From 3ea6b6b008fba6a5c885c3e27581d4e6195b052a Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 12 Feb 2012 17:47:39 +0000 Subject: [PATCH] Useless wrapping on an anonymous function. Follow-up r111264 --- includes/DBDataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1