mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'wip-MDL-60415-master' of git://github.com/abgreeve/moodle
This commit is contained in:
commit
a52fc1f7a8
1 changed files with 3 additions and 0 deletions
|
@ -1131,6 +1131,9 @@ EOD;
|
||||||
* @return Array of enabled capabilities
|
* @return Array of enabled capabilities
|
||||||
*/
|
*/
|
||||||
function lti_get_enabled_capabilities($tool) {
|
function lti_get_enabled_capabilities($tool) {
|
||||||
|
if (!isset($tool)) {
|
||||||
|
return array();
|
||||||
|
}
|
||||||
if (!empty($tool->enabledcapability)) {
|
if (!empty($tool->enabledcapability)) {
|
||||||
$enabledcapabilities = explode("\n", $tool->enabledcapability);
|
$enabledcapabilities = explode("\n", $tool->enabledcapability);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue