| @@ -56,15 +56,15 @@ | ||
| 56 | 56 | */ |
| 57 | 57 | public function preflight() |
| 58 | 58 | { |
| 59 | 59 | // can be used only if we have at least a scheduled task |
| 60 | - return count($this->crontab); | |
| 60 | + return (bool) count($this->crontab); | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * @inheritDoc |
| 65 | 65 | */ |
| 66 | - public function render(VBOMultitaskData $data = null) | |
| 66 | + public function render(?VBOMultitaskData $data = null) | |
| 67 | 67 | { |
| 68 | 68 | $schedules = []; |
| 69 | 69 | |
| 70 | 70 | foreach ($this->crontab as $runner) { |
| @@ -104,13 +104,8 @@ | ||
| 104 | 104 | 'sidepanel.widgets.crontab', |
| 105 | 105 | [ |
| 106 | 106 | 'schedules' => $schedules, |
| 107 | 107 | 'log' => htmlentities($log), |
| 108 | - ], | |
| 109 | - null, | |
| 110 | - [ | |
| 111 | - 'client' => 'administrator', | |
| 112 | - 'component' => 'com_vikbooking', | |
| 113 | 108 | ] |
| 114 | 109 | ); |
| 115 | 110 | } |
| 116 | 111 | } |