summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-12-19 10:23:09 +0000
committeralecpl <alec@alec.pl>2011-12-19 10:23:09 +0000
commit34c2e346712e12c201052e16eb42c3828ac6de38 (patch)
treef4d5f6131cb4c8993dec4ad079fede191b0ec9f9 /program/steps
parentc69c0a919719176adccc68b613cbe211ae882cd7 (diff)
- Fix "PHP Warning: Invalid argument supplied for foreach()" (#1488264)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/folders.inc10
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;
+ }
}
}
}