summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_shared.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 7bb47a5f0..92785124a 100644
--- a/program/include/rcube_shared.inc
+++ b/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;
}