From: Mikael Nordfeldth Date: Sun, 19 Apr 2015 19:12:26 +0000 (+0200) Subject: ksort on commands array to avoid converting to numerical array X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1194c47c5dfe17e188e4d2c3e1766755346ce02f;p=quix0rs-gnu-social.git ksort on commands array to avoid converting to numerical array --- diff --git a/lib/command.php b/lib/command.php index 94e95f0ee9..830b97ee23 100644 --- a/lib/command.php +++ b/lib/command.php @@ -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"; }