Skip to content
Snippets Groups Projects
Commit f8d42374 authored by David Siegfried's avatar David Siegfried
Browse files

prevent php-warnings, re #4114

Merge request studip/studip!2958
parent ed31fb68
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ class Oer_EndpointsController extends StudipController ...@@ -45,7 +45,7 @@ class Oer_EndpointsController extends StudipController
$this->render_json([ $this->render_json([
'name' => Config::get()->UNI_NAME_CLEAN, 'name' => Config::get()->UNI_NAME_CLEAN,
'public_key' => $host['public_key'], 'public_key' => $host['public_key'],
'url' => $GLOBALS['OER_PREFERRED_URI'] ?: $GLOBALS['ABSOLUTE_URI_STUDIP']."dispatch.php/oer/endpoints/", 'url' => ($GLOBALS['OER_PREFERRED_URI'] ?? $GLOBALS['ABSOLUTE_URI_STUDIP']) . 'dispatch.php/oer/endpoints/',
'index_server' => $host['index_server'] 'index_server' => $host['index_server']
]); ]);
} }
...@@ -254,7 +254,7 @@ class Oer_EndpointsController extends StudipController ...@@ -254,7 +254,7 @@ class Oer_EndpointsController extends StudipController
'description' => $material['description'], 'description' => $material['description'],
'content_type' => $material['content_type'], 'content_type' => $material['content_type'],
'front_image_content_type' => $material['front_image_content_type'], 'front_image_content_type' => $material['front_image_content_type'],
'url' => ($GLOBALS['OER_PREFERRED_URI'] ?: $GLOBALS['ABSOLUTE_URI_STUDIP'])."dispatch.php/oer/market/download/".$item_id, 'url' => ($GLOBALS['OER_PREFERRED_URI'] ?? $GLOBALS['ABSOLUTE_URI_STUDIP']) . 'dispatch.php/oer/market/download/' . $item_id,
'player_url' => $material['player_url'], 'player_url' => $material['player_url'],
'tool' => $material['tool'], 'tool' => $material['tool'],
'structure' => ($material['structure'] ? $material['structure']->getArrayCopy() : null), 'structure' => ($material['structure'] ? $material['structure']->getArrayCopy() : null),
......
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