1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-11 22:24:32 +01:00

Fix #532. Adds an intermediate variable to be compatible with php 5.3

This commit is contained in:
Stephane V 2014-07-09 19:18:20 +02:00 committed by babelouest
parent 9c1db382c5
commit 2f67599968

View File

@ -604,7 +604,8 @@ class Ldap extends AbstractBackend {
$uri = isset($options['uri']) ? $options['uri'] : null;
$contact->REV = (new \DateTime)->format(\DateTime::W3C);
$datetime = new \DateTime;
$contact->REV = $datetime->format(\DateTime::W3C);
// 2014/02/13 Sometimes, a card is created without a name (I don't like that)...
if (!isset($contact->N)) {