MDL-60415 mod_lti: avoid confusing error-message
This commit is contained in:
committed by
Adrian Greeve
parent
51e05c09c3
commit
4a2bc331fb
@@ -1131,6 +1131,9 @@ EOD;
|
||||
* @return Array of enabled capabilities
|
||||
*/
|
||||
function lti_get_enabled_capabilities($tool) {
|
||||
if (!isset($tool)) {
|
||||
return array();
|
||||
}
|
||||
if (!empty($tool->enabledcapability)) {
|
||||
$enabledcapabilities = explode("\n", $tool->enabledcapability);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user