We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8bdf75 commit ea77c79Copy full SHA for ea77c79
1 file changed
CAJA_WS.php
@@ -68,7 +68,12 @@
68
drupal_bootstrap(DRUPAL_BOOTSTRAP_SESSION);
69
70
$userid = intval($user->uid);
71
- $user_email = $user->email;
+ if (isset($user->email))
72
+ {
73
+ $user_email = $user->email;
74
+ } else {
75
+ $user_email = $user->mail;
76
+ }
77
$canAuthor = in_array('a2j author', array_values($user->roles));
78
} else {
79
// Running locally, just use demo or devuser (26 ,45 for a2jauthor.org).
0 commit comments