From adc0bf01f55ac84cfad47f1530f6e3e0319b58fe Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 29 May 2009 07:45:40 +0000 Subject: - allow empty identity name (#1485863) --- program/include/rcube_user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'program/include') 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; -- cgit v1.2.3