From 5f5276e999f743e473a1dff4bfe9c7f47ebd8702 Mon Sep 17 00:00:00 2001 From: Hydriz Date: Sun, 11 Nov 2012 21:08:39 +0800 Subject: [PATCH] Revert "Try making it an array" This reverts commit 59e103718a26e9502252f9f50042f8dcc14b4698. --- SpecialHostStats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpecialHostStats.php b/SpecialHostStats.php index b6c7a9c..f07efc1 100644 --- a/SpecialHostStats.php +++ b/SpecialHostStats.php @@ -20,7 +20,7 @@ public function execute( $par ) { $commands = array(); foreach ( $wgHostStatsCommands as $cmd ) { if ( in_array( $cmd, $this->cmdwhitelist ) ) { - array_push( array( $cmd ), $commands ); + array_push( $cmd, $commands ); } else { # Reject those unsafe commands and log it to hoststats wfDebugLog( "hoststats", "Rejected running command '" .