projects
/
project/privatemsg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4756d26
)
#429488 by Berdir | nbz: Fixed #348907 follow-up: inline documentation of _privatemsg...
author
Sascha Grossenbacher
Wed, 11 Nov 2009 23:30:51 +0000 (23:30 +0000)
committer
Sascha Grossenbacher
Wed, 11 Nov 2009 23:30:51 +0000 (23:30 +0000)
privatemsg.module
patch
|
blob
|
blame
|
history
diff --git
a/privatemsg.module
b/privatemsg.module
index
f651e14
..
f66436e
100644
(file)
--- a/
privatemsg.module
+++ b/
privatemsg.module
@@
-44,6
+44,8
@@
function _privatemsg_generate_user_array($userstring, $slice = NULL) {
// Convert user uid list (uid1,uid2,uid3) into an array. If $slice is not NULL
// pass that as argument to array_slice(). For example, -4 will only load the
// last four users.
+ // This is done to avoid loading user objects that are not displayed, for
+ // obvious performance reasons.
$users = explode(',', $userstring);
if (!is_null($slice)) {
$users = array_slice($users, $slice);