diff options
author | alecpl <alec@alec.pl> | 2011-12-21 10:07:42 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-12-21 10:07:42 +0000 |
commit | 96c946ee6ced0a9a68ef251528a3f900d5a01396 (patch) | |
tree | aa48a1c71b47bb32be33261b0c16524b64cfdb7c /program/steps/settings/folders.inc | |
parent | 89dc8499c3e51d426f685ff70e4e878d992ad2c7 (diff) |
- Applied fixes from trunk up to r5633
Diffstat (limited to 'program/steps/settings/folders.inc')
-rw-r--r-- | program/steps/settings/folders.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/program/steps/settings/folders.inc b/program/steps/settings/folders.inc index 77cbb5571..3fc366d1c 100644 --- a/program/steps/settings/folders.inc +++ b/program/steps/settings/folders.inc @@ -293,10 +293,12 @@ function rcube_subscription_form($attrib) if (!$disabled && $folder['virtual'] && $folder['level'] == 0 && !empty($namespace)) { $fname = $folder['id'] . $delimiter; foreach ($namespace as $ns) { - foreach ($ns as $item) { - if ($item[0] === $fname) { - $disabled = true; - break 2; + if (is_array($ns)) { + foreach ($ns as $item) { + if ($item[0] === $fname) { + $disabled = true; + break 2; + } } } } |