mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 01:59:19 +01:00
fix PHP Warning: explode(): Empty delimiter
This commit is contained in:
parent
c6f447f49c
commit
6800484429
@ -1476,7 +1476,7 @@ class Ldap
|
||||
function _inetorgperson2egw(&$contact, $data, $cn='cn')
|
||||
{
|
||||
$matches = null;
|
||||
if(empty($data['givenname'][0]))
|
||||
if (empty($data['givenname'][0]) && !empty($data['sn'][0]))
|
||||
{
|
||||
$parts = explode($data['sn'][0], $data[$cn][0]);
|
||||
$contact['n_prefix'] = trim($parts[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user