[RCD] 'preferences' column initialization in user_create

Aleksander Machniak alec at alec.pl
Wed Oct 21 16:08:08 CEST 2020

On 12.10.2020 15:34, Jacques Belin wrote:

> @@ -621,6 +621,7 @@
>              'user_email' => $user_email,
>              'email_list' => $email_list,
>              'language'   =>  $_SESSION['language'],
> +            'preferences'   =>  serialize(array()),

At this stage it would be better to use an array, and serialize later
(on insert).

> And even beyond the squirrelmail_usercopy plugin, I think this change
> could help others user-creation related plugins.

Please, create a pull request. I don't have much time recently, but the
feature makes sense, so we'll most likely accept it.

Aleksander Machniak
Kolab Groupware Developer        [https://kolab.org]
Roundcube Webmail Developer  [https://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com

More information about the dev mailing list