From fa4839c6ae4a1ee0bfccf4df008e36ead9b06799 Mon Sep 17 00:00:00 2001 From: LEDfan Date: Wed, 2 Apr 2014 20:31:57 +0200 Subject: [PATCH] Remove / --- lib/backend/owncloudusers.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/backend/owncloudusers.php b/lib/backend/owncloudusers.php index 74616560..9c4cdd53 100644 --- a/lib/backend/owncloudusers.php +++ b/lib/backend/owncloudusers.php @@ -271,26 +271,6 @@ class OwnCloudUsers extends AbstractBackend { } } - if (is_array($id)) { - if (isset($id['id'])) { - $id = $id['id']; - } elseif (isset($id['uri'])) { - $updateRevision = false; - $isCardDAV = true; - $id = $this->getIdFromUri($id['uri']); - - if (is_null($id)) { - \OCP\Util::writeLog('contacts', __METHOD__ . ' Couldn\'t find contact', \OCP\Util::ERROR); - return false; - } - - } else { - throw new \Exception( - __METHOD__ . ' If second argument is an array, either \'id\' or \'uri\' has to be set.' - ); - } - } - if ($updateRevision || !isset($contact->REV)) { $now = new \DateTime; $contact->REV = $now->format(\DateTime::W3C);