Uses class constant instead of magic number
authorMatthias Schmidt <gravatronics@live.com>
Sat, 27 Apr 2013 21:43:23 +0000 (23:43 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 27 Apr 2013 21:43:23 +0000 (23:43 +0200)
wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php

index de6fb7466e1880389dbb835d0c32bd8a9d02d074..d43db9af19a010be61b893d2677a81b6673c52e4 100644 (file)
@@ -129,7 +129,7 @@ class CronjobScheduler extends SingletonFactory {
                                $data['failCount'] = $failCount;
                                
                                // disable cronjob
-                               if ($failCount == 3) {
+                               if ($failCount == Cronjob::MAX_FAIL_COUNT) {
                                        $data['isDisabled'] = 1;
                                        $executeCronjob = false;
                                }