diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2023-03-11 11:48:42 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2023-03-11 11:48:42 +0000 |
| commit | 45c9af0ef45f3bb15284a1deb5e0739328e46fca (patch) | |
| tree | 2d00ef4c41489c4533b869b74be23d25b5941f9c /cli/Commands | |
| parent | 40fc9d70134441292b63e3006bc7b4c3962ed95f (diff) | |
check if class exists, closes #2345
Closes #2345
Merge request studip/studip!1534
Diffstat (limited to 'cli/Commands')
| -rw-r--r-- | cli/Commands/Cronjobs/CronjobList.php | 3 |
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]); |
