diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-07-28 09:02:41 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-07-28 09:02:41 +0000 |
| commit | cc381e5f9d4cc9fd6c9e239dfa0d3dd25859b1aa (patch) | |
| tree | 7795b89afcf4aa534946e22f71a22b311ca1a61d /roundcubemail/program/include | |
| parent | bde701199a7921fbd8c9c95d6bd43e57d44491d7 (diff) | |
- Fix performance in array_keys_recursive()
git-svn-id: https://svn.roundcube.net/trunk@3833 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index 7bb47a5f0..92785124a 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/program/include/rcube_shared.inc @@ -632,8 +632,8 @@ function array_keys_recursive($array) if (!empty($array)) foreach ($array as $key => $child) { $keys[] = $key; - if ($children = array_keys_recursive($child)) - $keys = array_merge($keys, $children); + foreach (array_keys_recursive($child) as $val) + $keys[] = $val; } return $keys; } |
