Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
c60d3ab3
Commit
c60d3ab3
authored
Jan 15, 2011
by
Petr Skoda
Browse files
fix error detected by code inspeaction
parent
db4d9088
Changes
1
Hide whitespace changes
Inline
Side-by-side
view.php
View file @
c60d3ab3
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment