You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-01-12 22:51:27 +03:00
see https://github.com/postfixadmin/postfixadmin/issues/251 - avoid things breaking if imap_open is not present
This commit is contained in:
@@ -661,6 +661,11 @@ class MailboxHandler extends PFAHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!function_exists('imap_open')) {
|
||||
trigger_error('imap_open function not present; cannot create_mailbox_subdirs');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!is_array($create_mailbox_subdirs)) {
|
||||
trigger_error('create_mailbox_subdirs must be an array', E_USER_ERROR);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user