prevent E_NOTICE
authorChristian Weiske <cweiske@cweiske.de>
Sat, 25 Aug 2012 18:17:02 +0000 (20:17 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 25 Aug 2012 18:17:02 +0000 (20:17 +0200)
src/callnotifier/CallMonitor/Detailler/LDAP.php

index 26599f4694719cc0a04036053790e87eef0b7e85..2e9387f43ee8ddf0cea7da9223ebab5ab708a699 100644 (file)
@@ -83,7 +83,7 @@ class CallMonitor_Detailler_LDAP implements CallMonitor_Detailler
         $arEntry = $search->shiftEntry()->getValues();
         if (isset($arEntry['displayName'])) {
             return $arEntry['displayName'];
         $arEntry = $search->shiftEntry()->getValues();
         if (isset($arEntry['displayName'])) {
             return $arEntry['displayName'];
-        } else if (isset($arEntry['sn']) && $arEntry['givenName']) {
+        } else if (isset($arEntry['sn']) && isset($arEntry['givenName'])) {
             return $arEntry['givenName'] . ' ' . $arEntry['sn'];
         } else if (isset($arEntry['cn'])) {
             return $arEntry['cn'];
             return $arEntry['givenName'] . ' ' . $arEntry['sn'];
         } else if (isset($arEntry['cn'])) {
             return $arEntry['cn'];