]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ksort on commands array to avoid converting to numerical array
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 19 Apr 2015 19:12:26 +0000 (21:12 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 19 Apr 2015 19:12:26 +0000 (21:12 +0200)
lib/command.php

index 94e95f0ee993c96db83188d32226caefa08e3d32..830b97ee239e9d8ba693efb3aa7f3ebf1b5cde4a 100644 (file)
@@ -932,7 +932,7 @@ class HelpCommand extends Command
         // Give plugins a chance to add or override...
         Event::handle('HelpCommandMessages', array($this, &$commands));
 
-        sort($commands);
+        ksort($commands);
         foreach ($commands as $command => $help) {
             $out[] = "$command - $help";
         }