mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Merge pull request #51 from nicorac/master
Bug in free/busy request handling (master)
This commit is contained in:
commit
a4872300b4
@ -869,12 +869,11 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
|||||||
array_shift($content_type);
|
array_shift($content_type);
|
||||||
foreach ($content_type as $attribute)
|
foreach ($content_type as $attribute)
|
||||||
{
|
{
|
||||||
trim($attribute);
|
|
||||||
list($key, $value) = explode('=', $attribute);
|
list($key, $value) = explode('=', $attribute);
|
||||||
switch (strtolower($key))
|
switch (strtolower(trim($key)))
|
||||||
{
|
{
|
||||||
case 'charset':
|
case 'charset':
|
||||||
$charset = strtoupper(substr($value,1,-1));
|
$charset = strtoupper(trim($value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1078,12 +1077,11 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
|||||||
array_shift($content_type);
|
array_shift($content_type);
|
||||||
foreach ($content_type as $attribute)
|
foreach ($content_type as $attribute)
|
||||||
{
|
{
|
||||||
trim($attribute);
|
|
||||||
list($key, $value) = explode('=', $attribute);
|
list($key, $value) = explode('=', $attribute);
|
||||||
switch (strtolower($key))
|
switch (strtolower(trim($key)))
|
||||||
{
|
{
|
||||||
case 'charset':
|
case 'charset':
|
||||||
$charset = strtoupper(substr($value,1,-1));
|
$charset = strtoupper(trim($value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3300,9 +3300,9 @@ class calendar_ical extends calendar_boupdate
|
|||||||
// sort by start datetime
|
// sort by start datetime
|
||||||
uasort($events, function($a, $b)
|
uasort($events, function($a, $b)
|
||||||
{
|
{
|
||||||
$diff = $a['start'] < $b['start'];
|
$diff = $a['start'] - $b['start'];
|
||||||
|
|
||||||
return !$diff ? 0 : ($diff < 0 ? -1 : 1);
|
return $diff == 0 ? 0 : ($diff < 0 ? -1 : 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
$fbdata = array();
|
$fbdata = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user