mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Contacts: Fix check for version.
This commit is contained in:
parent
78c11700f9
commit
aa51639271
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue