Index: trunk/extensions/UsabilityInitiative/ClickTracking/ClickTracking.hooks.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | */ |
44 | 44 | public static function isUserThrottled(){ |
45 | 45 | global $wgClickTrackThrottle; |
46 | | - if(rand() % $wgClickTrackThrottle == 0){ |
| 46 | + if( ( $wgClickTrackThrottle >= 0 ) && ( rand() % $wgClickTrackThrottle == 0 ) ){ |
47 | 47 | return 'false'; |
48 | 48 | } |
49 | 49 | else { |