Skip to content
Snippets Groups Projects
Commit 58dfd457 authored by Ron Lucke's avatar Ron Lucke Committed by Elmar Ludwig
Browse files

fix BIEST #344

parent b5ddb109
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"type": "string" "type": "string"
}, },
"recorder_enabled": { "recorder_enabled": {
"type": "string" "type": "boolean"
} }
}, },
"required": [ "required": [
......
...@@ -37,7 +37,7 @@ class Audio extends BlockType ...@@ -37,7 +37,7 @@ class Audio extends BlockType
'file_id' => '', 'file_id' => '',
'folder_id' => '', 'folder_id' => '',
'web_url' => '', 'web_url' => '',
'recorder_enabled' => 'false' 'recorder_enabled' => false
]; ];
} }
...@@ -49,9 +49,9 @@ class Audio extends BlockType ...@@ -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 public function getFiles(): array
{ {
......
...@@ -310,7 +310,7 @@ abstract class BlockType ...@@ -310,7 +310,7 @@ abstract class BlockType
$user $user
); );
return $copiedFile->id; return isset($copiedFile) ? $copiedFile->id : '';
} }
return ''; return '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment