diff options
| author | Shitiz Garg <mail@dragooon.net> | 2014-06-23 00:23:15 +0530 |
|---|---|---|
| committer | Shitiz Garg <mail@dragooon.net> | 2014-06-27 17:48:36 +0530 |
| commit | 7484859c71d092c378f1fd25392e604c4ffdd931 (patch) | |
| tree | 69328d79d2d514f45b8142b1b250f34544a788db /phpBB | |
| parent | c82a0b74cfc009af61aa1bfc5e220ec82b441f7a (diff) | |
| download | forums-7484859c71d092c378f1fd25392e604c4ffdd931.tar forums-7484859c71d092c378f1fd25392e604c4ffdd931.tar.gz forums-7484859c71d092c378f1fd25392e604c4ffdd931.tar.bz2 forums-7484859c71d092c378f1fd25392e604c4ffdd931.tar.xz forums-7484859c71d092c378f1fd25392e604c4ffdd931.zip | |
[ticket/12759] Cache lang_options on memberlist
PHPBB3-12759
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/memberlist.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 63541dbee6..e42c7fab0c 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -1382,6 +1382,7 @@ switch ($mode) { // Grab all profile fields from users in id cache for later use - similar to the poster cache $profile_fields_cache = $cp->grab_profile_fields_data($user_list); + $profile_rows = array(); // Filter the fields we don't want to show foreach ($profile_fields_cache as $user_id => $user_profile_fields) @@ -1392,8 +1393,14 @@ switch ($mode) { unset($profile_fields_cache[$user_id][$field_ident]); } + else + { + $profile_rows[] = $profile_field; + } } } + + $cp->cache_profile_fields_lang_options($profile_rows); } // If we sort by last active date we need to adjust the id cache due to user_lastvisit not being the last active date... |
