summaryrefslogtreecommitdiff
path: root/program/steps/settings
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:58:26 +0200
commit60860ca2ef93b5bca1adfd7f0b95cfd51fc883d5 (patch)
tree145dcbe26b7ae0a9bcf5795a14900f9bc703d5cb /program/steps/settings
parent4b484710ee367150989cd1b939a04111b8b5a923 (diff)
Fix bug where parentnotwritable error wasn't displayed in the interface
Diffstat (limited to 'program/steps/settings')
-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 25b81de44..f3692de30 100644
--- a/program/steps/settings/save_folder.inc
+++ b/program/steps/settings/save_folder.inc
@@ -83,7 +83,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'] = '';