Skip to content

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

@s-at-dq

Description

@s-at-dq

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions