mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-07 01:54:16 +01:00
Contacts: Fix check for version.
This commit is contained in:
parent
ec397e7a35
commit
dd48fc009e
@ -53,8 +53,8 @@ class OC_Contacts_App {
|
|||||||
$vcard = OC_VObject::parse($card['carddata']);
|
$vcard = OC_VObject::parse($card['carddata']);
|
||||||
// Try to fix cards with missing 'N' field from pre ownCloud 4. Hot damn, this is ugly...
|
// Try to fix cards with missing 'N' field from pre ownCloud 4. Hot damn, this is ugly...
|
||||||
if(!is_null($vcard) && !$vcard->__isset('N')) {
|
if(!is_null($vcard) && !$vcard->__isset('N')) {
|
||||||
$appinfo = OCP\App::getAppInfo('contacts');
|
$version = OCP\App::getAppVersion('contacts');
|
||||||
if($appinfo['version'] >= 5) {
|
if($version >= 5) {
|
||||||
OCP\Util::writeLog('contacts','OC_Contacts_App::getContactVCard. Deprecated check for missing N field', OCP\Util::DEBUG);
|
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);
|
OCP\Util::writeLog('contacts','getContactVCard, Missing N field', OCP\Util::DEBUG);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user