Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/admin/reports.php

    r136 r1331  
    5151
    5252$plugins = array();
    53 foreach (core_component::get_plugin_list('report') as $plugin => $plugindir) {
     53$availableplugins = core_component::get_plugin_list('report');
     54foreach ($availableplugins as $plugin => $plugindir) {
    5455    if (get_string_manager()->string_exists('pluginname', 'report_' . $plugin)) {
    5556        $strpluginname = get_string('pluginname', 'report_' . $plugin);
     
    8182    }
    8283
    83     $stores = $logmanager->get_supported_logstores('report_' . $plugin);
     84    $stores = array();
     85    if (isset($availableplugins[$plugin])) {
     86        $stores = $logmanager->get_supported_logstores('report_' . $plugin);
     87    }
    8488    if ($stores === false) {
    8589        $supportedstores = get_string('logstorenotrequired', 'admin');
Note: See TracChangeset for help on using the changeset viewer.