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 26599f4..2e9387f 100644 (file)
@@ -83,7 +83,7 @@ class CallMonitor_Detailler_LDAP implements CallMonitor_Detailler
         $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'];