Skip to content

Commit 835e215

Browse files
committed
Merge branch 'main' into issue-1243
2 parents fa7bfac + 75dff87 commit 835e215

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/Models/REST/SeriesClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private static function getSeriesDC($course_id)
7777
$publisher = (string)$inst->name;
7878
$instructors = $course->getMembers('dozent');
7979
$instructor = array_shift($instructors);
80-
$contributor = $GLOBALS['UNI_NAME_CLEAN'] ?: 'unbekannt';
80+
$contributor = \Config::get()->getValue('UNI_NAME_CLEAN') ?: 'unbekannt';
8181
$creator = $instructor['fullname'];
8282
$language = 'de';
8383

lib/Models/ScheduleHelper.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,17 +303,18 @@ public static function createScheduleEventXML($course_id, $resource_id, $termin_
303303
}
304304

305305
$contributor = $inst_data['name'];
306-
$description = $issue->description;
306+
$description = $issue->description ?? null;
307307
$device = $ca['capture_agent'];
308308

309309
$language = "de";
310310
$seriesId = $serie['series_id'];
311311

312-
if (!$issue->title) {
312+
if (empty($issue->title)) {
313313
$name = $course->getName();
314314
$title = $name . ' ' . sprintf(_('(%s)'), $date->getDatesExport());
315-
} else $title = $issue_titles;
316-
315+
} else {
316+
$title = $issue_titles;
317+
}
317318

318319
// Additional Metadata
319320
$abstract = $course->description;
@@ -515,7 +516,7 @@ private static function createEventMetadata($course_id, $resource_id, $config_id
515516
}
516517
}
517518

518-
if (!$issue->title) {
519+
if (empty($issue->title)) {
519520
$course = Seminar::getInstance($course_id);
520521
$name = $course->getName();
521522
$title = $name . ' ' . sprintf(_('(%s)'), $date->getDatesExport());

0 commit comments

Comments
 (0)