diff options
Diffstat (limited to 'apps/contacts/lib/app.php')
-rwxr-xr-x | apps/contacts/lib/app.php | 4 |
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); |