Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d5023adb
Commit
d5023adb
authored
May 31, 2002
by
Kjartan Mannes
Browse files
- fixing who is online block.
parent
af075abb
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
d5023adb
...
...
@@ -503,7 +503,7 @@ function user_block() {
if
(
db_num_rows
(
$result
))
{
$output
=
""
;
while
(
$account
=
db_fetch_object
(
$result
))
{
$output
.
=
lm
((
strlen
(
$account
->
name
)
>
15
?
substr
(
$account
->
name
,
0
,
15
)
.
'...'
:
$account
->
name
),
array
(
"mod"
=>
"user"
,
"op"
=>
"view"
,
"id"
=>
$account
->
uid
));
$output
.
=
lm
((
strlen
(
$account
->
name
)
>
15
?
substr
(
$account
->
name
,
0
,
15
)
.
'...'
:
$account
->
name
),
array
(
"mod"
=>
"user"
,
"op"
=>
"view"
,
"id"
=>
$account
->
uid
))
.
"<br />"
;
}
$block
[
2
][
"content"
]
=
$output
;
}
...
...
modules/user/user.module
View file @
d5023adb
...
...
@@ -503,7 +503,7 @@ function user_block() {
if
(
db_num_rows
(
$result
))
{
$output
=
""
;
while
(
$account
=
db_fetch_object
(
$result
))
{
$output
.
=
lm
((
strlen
(
$account
->
name
)
>
15
?
substr
(
$account
->
name
,
0
,
15
)
.
'...'
:
$account
->
name
),
array
(
"mod"
=>
"user"
,
"op"
=>
"view"
,
"id"
=>
$account
->
uid
));
$output
.
=
lm
((
strlen
(
$account
->
name
)
>
15
?
substr
(
$account
->
name
,
0
,
15
)
.
'...'
:
$account
->
name
),
array
(
"mod"
=>
"user"
,
"op"
=>
"view"
,
"id"
=>
$account
->
uid
))
.
"<br />"
;
}
$block
[
2
][
"content"
]
=
$output
;
}
...
...
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