X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Femails.combobox.inc.php;h=288aa66ce47e0c2943230eb8539ed96990d31570;hb=4abb0fe4bcefc73a18891e9768640d8811a09acc;hp=7626b33fc4beab0358fcd79deed170737c5e2fc8;hpb=93d42b4fcc6f055a428c9b63e386ac62c918d08a;p=platal.git diff --git a/include/emails.combobox.inc.php b/include/emails.combobox.inc.php index 7626b33..288aa66 100644 --- a/include/emails.combobox.inc.php +++ b/include/emails.combobox.inc.php @@ -23,9 +23,12 @@ function fill_email_combobox(PlPage& $page, $user = null, $profile = null) { global $globals; - if (is_null($user) && is_null($profile)) { + if (is_null($user)) { $user = S::user(); - $profile = $user->profile(); + } + if (is_null($profile)) { + /* Always refetch the profile. */ + $profile = $user->profile(true); } $email_type = "directory";