aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2023-03-11 11:48:42 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2023-03-11 11:48:42 +0000
commit45c9af0ef45f3bb15284a1deb5e0739328e46fca (patch)
tree2d00ef4c41489c4533b869b74be23d25b5941f9c /cli
parent40fc9d70134441292b63e3006bc7b4c3962ed95f (diff)
check if class exists, closes #2345
Closes #2345 Merge request studip/studip!1534
Diffstat (limited to 'cli')
-rw-r--r--cli/Commands/Cronjobs/CronjobList.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/Commands/Cronjobs/CronjobList.php b/cli/Commands/Cronjobs/CronjobList.php
index af4913d..4afa637 100644
--- a/cli/Commands/Cronjobs/CronjobList.php
+++ b/cli/Commands/Cronjobs/CronjobList.php
@@ -27,6 +27,9 @@ class CronjobList extends Command
$table->setStyle('compact');
$table->setHeaders(['Task-ID', 'Description']);
foreach ($tasks as $task) {
+ if (!class_exists($task->class)) {
+ continue;
+ }
$description = call_user_func(['\\' . $task->class, 'getDescription']);
if ($description) {
$table->addRow([$task->id, $description]);