Permalink
Browse files

Merge branch 'mdl63334-master' of https://github.com/tlock/moodle

  • Loading branch information...
dmonllao committed Oct 3, 2018
2 parents d6946bb + 394d0f1 commit 1ef89ad49cfc09e17e25dcfbad5a00218bc3eb41
Showing with 5 additions and 3 deletions.
  1. +5 −3 admin/tool/dataprivacy/classes/metadata_registry.php
@@ -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;
}
}
}

0 comments on commit 1ef89ad

Please sign in to comment.