Skip to content
Snippets Groups Projects
Commit bd41c0e1 authored by Marco Fernandes's avatar Marco Fernandes
Browse files

Issue #3063408: Return empty strings instead of null.

parent b19119fe
No related branches found
No related tags found
No related merge requests found
......@@ -69,15 +69,15 @@ class MediaController extends ControllerBase {
if (!isset($data['title']['raw'])) {
$data['title'] = [
'raw' => $data['title'],
'rendered' => $data['title'],
'raw' => is_null($data['title']) ? '' : $data['title'],
'rendered' => is_null($data['title']) ? '' : $data['title'],
];
}
if (!isset($data['caption']['raw'])) {
$data['caption'] = [
'raw' => $data['caption'],
'rendered' => $data['caption'],
'raw' => is_null($data['caption']) ? '' : $data['caption'],
'rendered' => is_null($data['caption']) ? '' : $data['caption'],
];
}
......
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