Fix bug where parentnotwritable error wasn't displayed in the interface

pull/23/merge
Aleksander Machniak 12 years ago
parent 10141cd6fd
commit 26fc0defe3

@ -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['name'] = $name_imap;
$folder['oldname'] = $old_imap; $folder['oldname'] = $old_imap;
$folder['class'] = ''; $folder['class'] = '';

Loading…
Cancel
Save