summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--privatemsg.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/privatemsg.module b/privatemsg.module
index f651e14..f66436e 100644
--- 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);