Commit 2ccc5f84 authored by Till Brehm's avatar Till Brehm
Browse files

Set maildir_format in remote mail_user_add function when it does not exist in params array.

parent 82fb0fad
......@@ -217,6 +217,7 @@ class remoting_mail extends remoting {
//* Set a few params to non empty values that will be overwritten by mail_plugin
if (!isset($params['uid'])) $params['uid'] = -1;
if (!isset($params['gid'])) $params['gid'] = -1;
if (!isset($params['maildir_format'])) $params['maildir_format'] = 'maildir';
$affected_rows = $this->insertQuery('../mail/form/mail_user.tform.php', $client_id, $params);
return $affected_rows;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment