diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 0b1bd19acc3..1593085aefe 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1235,11 +1235,15 @@ function wfLogProfilingData() { * * @param $key String * @param $count Int + * @return void */ function wfIncrStats( $key, $count = 1 ) { global $wgStatsMethod; $count = intval( $count ); + if ( $count == 0 ) { + return; + } if( $wgStatsMethod == 'udp' ) { global $wgUDPProfilerHost, $wgUDPProfilerPort, $wgAggregateStatsID;