Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
585e1a03
Commit
585e1a03
authored
Dec 23, 2013
by
Son Nguyen
Committed by
Gerrit Code Review
Dec 23, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Checking for $user->urlid before trying to access it (bug #1253462)" into 1.6_STABLE
parents
10d10984
ff9142fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
htdocs/lib/user.php
htdocs/lib/user.php
+2
-1
No files found.
htdocs/lib/user.php
View file @
585e1a03
...
...
@@ -1609,7 +1609,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
Markdown
is supported
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