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 '" .