summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-05-29 07:45:40 +0000
committeralecpl <alec@alec.pl>2009-05-29 07:45:40 +0000
commitadc0bf01f55ac84cfad47f1530f6e3e0319b58fe (patch)
treed583b024dbaff72234588e9037e9e7a08be0faf1
parent0b9dcdd605cc033d1ffc02e2f164dd2467afa5bd (diff)
- allow empty identity name (#1485863)
-rw-r--r--program/include/rcube_user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index c84652bb6..281328a8e 100644
--- a/program/include/rcube_user.php
+++ b/program/include/rcube_user.php
@@ -408,7 +408,7 @@ class rcube_user
$email = $row;
$name = $user_name;
}
-
+
$plugin = $rcmail->plugins->exec_hook('create_identity', array('record' => array(
'login' => true,
'user_id' => $user_id,
@@ -416,14 +416,14 @@ class rcube_user
'email' => $email,
'standard' => $standard)));
- if (!$plugin['abort'] && $plugin['record']['name'] && $plugin['record']['email']) {
+ if (!$plugin['abort'] && $plugin['record']['email']) {
$dbh->query(
"INSERT INTO ".get_table_name('identities')."
(user_id, del, standard, name, email)
VALUES (?, 0, ?, ?, ?)",
$user_id,
$plugin['record']['standard'],
- $plugin['record']['name'],
+ $plugin['record']['name'] != NULL ? $plugin['record']['name'] : '',
$plugin['record']['email']);
}
$standard = 0;