Commit b48c459f authored by Björn Fischer's avatar Björn Fischer

fix undefined variable order

parent 30b86a0b
......@@ -97,10 +97,9 @@ class BackendCalDAV extends BackendDiff {
$search = ldap_search($ldap_conn, CALDAV_IDENTITY_LDAP_BASE, $filter, array(CALDAV_IDENTITY_LDAP_IDENTIFIER));
$items = ldap_get_entries($ldap_conn, $search);
if ($items['count'] > 0) {
$ret_value = $identity;
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getIdentityFromLdap() - Found entry in LDAP. Generating From"));
// We get the first object. It's your responsability to make the query unique
$caldav_path = str_replace('%i', $items[0][$field][CALDAV_IDENTITY_LDAP_IDENTIFIER], $caldav_path);
$caldav_path = str_replace('%i', $items[0][CALDAV_IDENTITY_LDAP_IDENTIFIER][0], $caldav_path);
}
else {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getIdentityFromLdap() - No entry found in LDAP"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment