From 4f9542a83354bc63016ec942898e836e66ceea51 Mon Sep 17 00:00:00 2001 From: Alexey Shpakovsky Date: Sun, 30 May 2021 00:18:36 +0200 Subject: [PATCH] typo fixes --- abook_class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/abook_class.php b/abook_class.php index 79faf31..5bd95fb 100755 --- a/abook_class.php +++ b/abook_class.php @@ -161,6 +161,7 @@ class abook_carddav extends addressbook_backend { return array(); } + $abook_uri_len=strlen($this->abook->getUriPath()); if($field == SM_ABOOK_FIELD_NICKNAME) { // TODO: edit this if we use different nick-naming scheme $uri = $this->abook->getUriPath() . $value; @@ -202,7 +203,6 @@ class abook_carddav extends addressbook_backend { The keys of the array are the URIs of the vcards The values are associative arrays with keys etag (type: string) and vcard (type: VCard) */ - $abook_uri_len=strlen($this->abook->getUriPath()); foreach($all as $uri => $one) { $vcard = $one['vcard']; if(!isset($vcard->EMAIL)) { continue; } @@ -303,8 +303,8 @@ class abook_carddav extends addressbook_backend { } // TODO: edit this if we use different nick-naming scheme - $uri = $this->abook->getUriPath() . $value; - $abook->deleteCard($uri); + $uri = $this->abook->getUriPath() . $alias; + $this->abook->deleteCard($uri); // FIXME: // return true if operation is succesful. @@ -326,7 +326,7 @@ class abook_carddav extends addressbook_backend { /* See if user exist */ // TODO: edit this if we use different nick-naming scheme - $uri = $this->abook->getUriPath() . $value; + $uri = $this->abook->getUriPath() . $alias; $one = $this->abook->getCard($uri); /* returns Associative array with keys: etag(string): Entity tag of the returned card