virtUOS / courseware

Interaktive multimediale Lernmodule erstellen und bereitstellen
GNU General Public License v2.0
6 stars 5 forks source link

Migration kann in Courseware 5.0.9 nicht ausgeführt werden #286

Open s-at-dq opened 1 year ago

s-at-dq commented 1 year ago

Wenn ich in Courseware 5.0.9 versuche, die Migration auszuführen, erhalte ich folgende Meldung:

$ php7.4 cli/application.php
PHP Parse error:  syntax error, unexpected '$webvideo' (T_VARIABLE) in .../studip/5.2/public/plugins_packages/virtUOS/Courseware/command/MigrateCoursewareCommand.php on line 897

Parse error: syntax error, unexpected '$webvideo' (T_VARIABLE) in .../studip/5.2/public/plugins_packages/virtUOS/Courseware/command/MigrateCoursewareCommand.php on line 897

In der entsprechenden Zeile steht folgendes:

if ((!$webvideo->source || typeof $webvideo->source === "undefined") && $webvideo->src) {

Das typeof ist hier das Problem, denn wenn ich an der Stelle typeof durch empty ersetze, kann das CLI-Skript aufgerufen werden:

if (empty($webvideo->source) && $webvideo->src) {