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 @@
"type": "string"
},
"recorder_enabled": {
"type": "string"
"type": "boolean"
}
},
"required": [
......
......@@ -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
{
......
......@@ -310,7 +310,7 @@ abstract class BlockType
$user
);
return $copiedFile->id;
return isset($copiedFile) ? $copiedFile->id : '';
}
return '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment