summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-03 19:56:59 +0200
committerAleksander Machniak <alec@alec.pl>2012-09-03 19:56:59 +0200
commit26fc0defe374734db81baa8177466639ed65c900 (patch)
tree6dc0c052566c23e31d0461c16ca4ea616b977bae /program/steps
parent10141cd6fd94105c757a0b91f11897cc5ae2c808 (diff)
Fix bug where parentnotwritable error wasn't displayed in the interface
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/save_folder.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/settings/save_folder.inc b/program/steps/settings/save_folder.inc
index 09f76ac27..73cc5e4bf 100644
--- a/program/steps/settings/save_folder.inc
+++ b/program/steps/settings/save_folder.inc
@@ -80,7 +80,10 @@ if (!$error && strlen($path) && (!strlen($old_imap) || $old_imap != $name_imap))
}
}
-if (!$error) {
+if ($error) {
+ $OUTPUT->command('display_message', $error, 'error');
+}
+else {
$folder['name'] = $name_imap;
$folder['oldname'] = $old_imap;
$folder['class'] = '';