Skip to content
Snippets Groups Projects
Commit 45c9af0e authored by David Siegfried's avatar David Siegfried
Browse files

check if class exists, closes #2345

Closes #2345

Merge request studip/studip!1534
parent 40fc9d70
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment