Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment