Fixed issue restoring a customcert

This commit is contained in:
Mark Nelson 2015-03-25 16:56:35 -07:00
parent 7cf71730fc
commit d9e8c24a6b

View file

@ -95,7 +95,9 @@ class restore_customcert_activity_task extends restore_activity_task {
* was available at the time.
*/
public function after_restore() {
global $DB;
global $CFG, $DB;
require_once($CFG->dirroot . '/mod/customcert/locallib.php');
// Get the customcert elements.
$sql = "SELECT e.*