* CardDAV/GroupDAV/Addressbook: do NOT check for api version, as it caused accounts created during setup to have no carddav_name and therefore fail in CardDAV/GroupDAV (shown as "/addressbook/" in collection list!)

This commit is contained in:
Ralf Becker 2011-09-28 09:48:47 +00:00
parent b44e108cea
commit 0003a93c11

View File

@ -656,7 +656,7 @@ class addressbook_sql extends so_sql_cf
//echo "<p>set uid={$this->data['uid']}, etag={$this->data['etag']}</p>";
}
// set carddav_name, if not given by caller
if (empty($this->data['carddav_name']) && version_compare($GLOBALS['egw_info']['apps']['phpgwapi']['version'], '1.9.007', '>='))
if (empty($this->data['carddav_name']))
{
$update['carddav_name'] = $this->data['id'].'.vcf';
}