diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2021-10-20 09:47:05 +0000 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2021-10-20 09:47:05 +0000 |
| commit | 58dfd45765132142b30bda31501d2b49ce9c7460 (patch) | |
| tree | c799c235085ab465930117a2649d2eb1ed1a4f89 /lib/models/Courseware | |
| parent | b5ddb10998e869716086feb3a233edb8f81a7b0f (diff) | |
fix BIEST #344
Diffstat (limited to 'lib/models/Courseware')
| -rwxr-xr-x | lib/models/Courseware/BlockTypes/Audio.json | 2 | ||||
| -rwxr-xr-x | lib/models/Courseware/BlockTypes/Audio.php | 6 | ||||
| -rwxr-xr-x | lib/models/Courseware/BlockTypes/BlockType.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/models/Courseware/BlockTypes/Audio.json b/lib/models/Courseware/BlockTypes/Audio.json index 5ec4473..0606f8e 100755 --- a/lib/models/Courseware/BlockTypes/Audio.json +++ b/lib/models/Courseware/BlockTypes/Audio.json @@ -18,7 +18,7 @@ "type": "string" }, "recorder_enabled": { - "type": "string" + "type": "boolean" } }, "required": [ diff --git a/lib/models/Courseware/BlockTypes/Audio.php b/lib/models/Courseware/BlockTypes/Audio.php index 97c4288..ae7e15a 100755 --- a/lib/models/Courseware/BlockTypes/Audio.php +++ b/lib/models/Courseware/BlockTypes/Audio.php @@ -37,7 +37,7 @@ class Audio extends BlockType 'file_id' => '', 'folder_id' => '', 'web_url' => '', - 'recorder_enabled' => 'false' + 'recorder_enabled' => false ]; } @@ -49,9 +49,9 @@ class Audio extends BlockType } /** - * get all files related to this bloc. + * get all files related to this block. * - * @return \FileRef[] list of file references realted to this block + * @return \FileRef[] list of file references related to this block */ public function getFiles(): array { diff --git a/lib/models/Courseware/BlockTypes/BlockType.php b/lib/models/Courseware/BlockTypes/BlockType.php index 960ccad..0d99434 100755 --- a/lib/models/Courseware/BlockTypes/BlockType.php +++ b/lib/models/Courseware/BlockTypes/BlockType.php @@ -310,7 +310,7 @@ abstract class BlockType $user ); - return $copiedFile->id; + return isset($copiedFile) ? $copiedFile->id : ''; } return ''; |
