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
mahara
mahara
Commits
7368636f
Commit
7368636f
authored
Dec 18, 2013
by
Son Nguyen
Committed by
Gerrit Code Review
Dec 18, 2013
Browse files
Merge "Checking for $user->urlid before trying to access it (bug #1253462)"
parents
971e018d
8bd31fc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/user.php
View file @
7368636f
...
...
@@ -1631,7 +1631,8 @@ function profile_url($user, $full=true, $useid=false) {
}
else
if
(
is_numeric
(
$user
))
{
$id
=
$user
;
$urlid
=
$wantclean
?
get_user_for_display
(
$id
)
->
urlid
:
null
;
$user
=
get_user_for_display
(
$id
);
$urlid
=
(
$wantclean
&&
!
empty
(
$user
->
urlid
))
?
$user
->
urlid
:
null
;
}
else
if
(
isset
(
$user
->
id
))
{
$id
=
$user
->
id
;
...
...
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