summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-01 17:52:59 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-01 17:52:59 -0400
commit92d683587a54f1ef1348a040c34d1f41f1a1e0ca (patch)
tree64167ebcfe84875ea80964f045325c6ea903cdb0 /lib/public
parent4933128850879f0e0590746b6742dafcf857e113 (diff)
downloadnextcloud-server-92d683587a54f1ef1348a040c34d1f41f1a1e0ca.tar.gz
nextcloud-server-92d683587a54f1ef1348a040c34d1f41f1a1e0ca.zip
Fix contact email share type redirection
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 3cc755866e3..5eb690b510b 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -204,14 +204,14 @@ class Share {
\OC_Log::write('OCP\Share', $message, \OC_Log::ERROR);
throw new \Exception($message);
}
- $details = OC_Contacts_VCard::structureContact($vcard);
+ $details = \OC_Contacts_VCard::structureContact($vcard);
// TODO Add ownCloud user to contacts vcard
if (!isset($details['EMAIL'])) {
$message = 'Sharing '.$item.' failed, because no email address is associated with the contact';
\OC_Log::write('OCP\Share', $message, \OC_Log::ERROR);
throw new \Exception($message);
}
- return self::share($itemType, $item, self::SHARE_TYPE_EMAIL, $permissions);
+ return self::share($itemType, $item, self::SHARE_TYPE_EMAIL, $details['EMAIL'], $permissions);
break;
// Future share types need to include their own conditions
default: