summaryrefslogtreecommitdiffstats
path: root/apps/contacts/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-05-11 01:10:50 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-05-11 01:14:11 +0200
commitaa516392710fc09961f3c4e3b7dd3d07b13b1e00 (patch)
treea36c85aaf1f749475543bc9bab34df8354b026cf /apps/contacts/lib
parent78c11700f9adbe1bcde96752de3340e05bc621c9 (diff)
downloadnextcloud-server-aa516392710fc09961f3c4e3b7dd3d07b13b1e00.tar.gz
nextcloud-server-aa516392710fc09961f3c4e3b7dd3d07b13b1e00.zip
Contacts: Fix check for version.
Diffstat (limited to 'apps/contacts/lib')
-rwxr-xr-xapps/contacts/lib/app.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/lib/app.php b/apps/contacts/lib/app.php
index 58cc7f03462..330d5b21b79 100755
--- a/apps/contacts/lib/app.php
+++ b/apps/contacts/lib/app.php
@@ -53,8 +53,8 @@ class OC_Contacts_App {
$vcard = OC_VObject::parse($card['carddata']);
// Try to fix cards with missing 'N' field from pre ownCloud 4. Hot damn, this is ugly...
if(!is_null($vcard) && !$vcard->__isset('N')) {
- $appinfo = OCP\App::getAppInfo('contacts');
- if($appinfo['version'] >= 5) {
+ $version = OCP\App::getAppVersion('contacts');
+ if($version >= 5) {
OCP\Util::writeLog('contacts','OC_Contacts_App::getContactVCard. Deprecated check for missing N field', OCP\Util::DEBUG);
}
OCP\Util::writeLog('contacts','getContactVCard, Missing N field', OCP\Util::DEBUG);