Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
b0639b78
Commit
b0639b78
authored
Apr 30, 2009
by
skodak
Browse files
MDL-15801 fixed incorrect use of get complete user data function; merged from MOODLE_19_STABLE
parent
1aee8c7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
grade/report/overview/index.php
View file @
b0639b78
...
...
@@ -43,7 +43,7 @@ if (empty($userid)) {
require_capability
(
'moodle/grade:viewall'
,
$context
);
}
else
{
if
(
!
get_complete_user_data
(
'id'
,
$userid
)
or
isguestuser
(
$userid
))
{
if
(
!
$DB
->
get_record
(
'user'
,
array
(
'id'
=>
$userid
,
'deleted'
=>
0
)
)
or
isguestuser
(
$userid
))
{
error
(
"Incorrect userid"
);
}
}
...
...
grade/report/user/index.php
View file @
b0639b78
...
...
@@ -43,7 +43,7 @@ if (empty($userid)) {
require_capability
(
'moodle/grade:viewall'
,
$context
);
}
else
{
if
(
!
get_complete_user_data
(
'id'
,
$userid
)
or
isguestuser
(
$userid
))
{
if
(
!
$DB
->
get_record
(
'user'
,
array
(
'id'
=>
$userid
,
'deleted'
=>
0
)
)
or
isguestuser
(
$userid
))
{
print_error
(
'invaliduser'
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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