From a35ae4c2a001f55951281cbcf8b397ac61c8b2d8 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 4 Feb 2011 18:58:52 -0800 Subject: [PATCH] Fix a reset() thingie. --- .../controller/console/PhabricatorConduitConsoleController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/applications/conduit/controller/console/PhabricatorConduitConsoleController.php b/src/applications/conduit/controller/console/PhabricatorConduitConsoleController.php index 01180b8539..4bee4284c5 100644 --- a/src/applications/conduit/controller/console/PhabricatorConduitConsoleController.php +++ b/src/applications/conduit/controller/console/PhabricatorConduitConsoleController.php @@ -126,9 +126,10 @@ class PhabricatorConduitConsoleController foreach ($classes as $method_class) { $method_name = ConduitAPIMethod::getAPIMethodNameFromClassName( $method_class); + $parts = explode('.', $method_name); $method_names[] = array( 'full_name' => $method_name, - 'group_name' => reset(explode('.', $method_name)), + 'group_name' => reset($parts), ); } $method_names = igroup($method_names, 'group_name');