Commit c60d3ab3 authored by Petr Skoda's avatar Petr Skoda
Browse files

fix error detected by code inspeaction

parent db4d9088
......@@ -40,7 +40,7 @@ if ($id) {
$book = $DB->get_record('book', array('id'=>$cm->instance), '*', MUST_EXIST);
} else {
$book = $DB->get_record('book', array('id'=>$bid), '*', MUST_EXIST);
$cm = get_coursemodule_from_instance('book', $book->id, 0, false, MU<ST_EXIST);
$cm = get_coursemodule_from_instance('book', $book->id, 0, false, MUST_EXIST);
$course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST);
$id = $cm->id;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment