PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | admin/helpers/widgets/background_tasks.php +2 -7 1.7.2 → 1.8.16 View file →
@@ -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 }