Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
s-at-dq opened this issue Jan 25, 2023 · 0 comments
Open

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

s-at-dq opened this issue Jan 25, 2023 · 0 comments

Comments

@s-at-dq
Copy link

s-at-dq commented Jan 25, 2023

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) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant