Skip to content

Commit

Permalink
Merge branch 'mdl63334-master' of https://github.com/tlock/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Oct 3, 2018
2 parents d6946bb + 394d0f1 commit 1ef89ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions admin/tool/dataprivacy/classes/metadata_registry.php
Expand Up @@ -80,9 +80,11 @@ public function get_registry_metadata() {
// Check if the interface is deprecated.
if (!$manager->is_empty_subsystem($component)) {
$classname = $manager->get_provider_classname_for_component($component);
$componentclass = new $classname();
if ($componentclass instanceof \core_privacy\local\deprecated) {
$internaldata['deprecated'] = true;
if (class_exists($classname)) {
$componentclass = new $classname();
if ($componentclass instanceof \core_privacy\local\deprecated) {
$internaldata['deprecated'] = true;
}
}
}

Expand Down

0 comments on commit 1ef89ad

Please sign in to comment.