]> source.dussan.org Git - nextcloud-server.git/commitdiff
Contacts: Fix check for version.
authorThomas Tanghus <thomas@tanghus.net>
Thu, 10 May 2012 23:10:50 +0000 (01:10 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 10 May 2012 23:14:11 +0000 (01:14 +0200)
apps/contacts/lib/app.php

index 58cc7f034620353b6650d1af9888f656fe25d704..330d5b21b7986c07f053aec5af5e06bc054d5970 100755 (executable)
@@ -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);