Fix SyncML preferences

This commit is contained in:
Jörg Lehrke 2010-04-14 16:40:54 +00:00
parent ae0bd0a0b7
commit 2b9198e8f7
2 changed files with 14 additions and 8 deletions

View File

@ -1799,11 +1799,14 @@ class calendar_ical extends calendar_boupdate
{ {
case 'G': case 'G':
case 'P': case 'P':
case 0:
$owner = $this->user; $owner = $this->user;
} break;
if (0 < (int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner)) default:
{ if ((int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner))
$this->calendarOwner = $owner; {
$this->calendarOwner = $owner;
}
} }
} }
if (!isset($this->productManufacturer) || if (!isset($this->productManufacturer) ||

View File

@ -1217,11 +1217,14 @@ class calendar_sif extends calendar_boupdate
{ {
case 'G': case 'G':
case 'P': case 'P':
case 0:
$owner = $this->user; $owner = $this->user;
} break;
if (0 < (int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner)) default:
{ if ((int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner))
$this->calendarOwner = $owner; {
$this->calendarOwner = $owner;
}
} }
} }
} }