diff options
author | alecpl <alec@alec.pl> | 2011-12-19 10:23:09 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-12-19 10:23:09 +0000 |
commit | 34c2e346712e12c201052e16eb42c3828ac6de38 (patch) | |
tree | f4d5f6131cb4c8993dec4ad079fede191b0ec9f9 /program/steps/settings | |
parent | c69c0a919719176adccc68b613cbe211ae882cd7 (diff) |
- Fix "PHP Warning: Invalid argument supplied for foreach()" (#1488264)
Diffstat (limited to 'program/steps/settings')
-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 31f31a32a..7364c6eec 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; + } } } } |