projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates the hooks in module/carnet.php to use the new PlTokenHook.
[platal.git]
/
include
/
emails.combobox.inc.php
diff --git
a/include/emails.combobox.inc.php
b/include/emails.combobox.inc.php
index
7626b33
..
288aa66
100644
(file)
--- 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;
{
global $globals;
- if (is_null($user)
&& is_null($profile)
) {
+ if (is_null($user)) {
$user = S::user();
$user = S::user();
- $profile = $user->profile();
+ }
+ if (is_null($profile)) {
+ /* Always refetch the profile. */
+ $profile = $user->profile(true);
}
$email_type = "directory";
}
$email_type = "directory";