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/completion/criteria/completion_criteria_role.php

    r136 r1331  
    124124        global $DB;
    125125        $role = $DB->get_record('role', array('id' => $this->role));
     126        if (!$role) {
     127            return '['.get_string('roleidnotfound', 'completion', $this->role).']';
     128        }
    126129        return role_get_name($role, context_course::instance($this->course));
    127130    }
Note: See TracChangeset for help on using the changeset viewer.