Fix free-busy slot comparison

This commit is contained in:
Thomas Broderli 2011-07-28 11:43:35 +02:00
parent 021f8b51e8
commit d569b020f4

View file

@ -1282,7 +1282,7 @@ class calendar extends rcube_plugin
$status = self::FREEBUSY_FREE; $status = self::FREEBUSY_FREE;
foreach ($fblist as $slot) { foreach ($fblist as $slot) {
list($from, $to, $type) = $slot; list($from, $to, $type) = $slot;
if ($from <= $t_end && $to > $t) { if ($from < $t_end && $to > $t) {
$status = isset($type) ? $type : self::FREEBUSY_BUSY; $status = isset($type) ? $type : self::FREEBUSY_BUSY;
break; break;
} }