diff --git a/includes/Notifications/EventDispatcher.php b/includes/Notifications/EventDispatcher.php index 1fc4a2f98..e496fe53e 100644 --- a/includes/Notifications/EventDispatcher.php +++ b/includes/Notifications/EventDispatcher.php @@ -493,10 +493,10 @@ class EventDispatcher { global $wgDTSchemaEditAttemptStepSamplingRate, $wgWMESchemaEditAttemptStepSamplingRate; // Sample 6.25% $samplingRate = 0.0625; - if ( isset( $wgDTSchemaEditAttemptStepSamplingRate ) ) { + if ( $wgDTSchemaEditAttemptStepSamplingRate !== null ) { $samplingRate = $wgDTSchemaEditAttemptStepSamplingRate; } - if ( isset( $wgWMESchemaEditAttemptStepSamplingRate ) ) { + if ( $wgWMESchemaEditAttemptStepSamplingRate !== null ) { $samplingRate = $wgWMESchemaEditAttemptStepSamplingRate; } if ( $samplingRate === 0 ) {