Fix hideprivate / showonlypublic filters

This commit is contained in:
Nathan Gray 2011-03-22 16:03:35 +00:00
parent 9db4532ca6
commit 8d81db64af

View File

@ -474,7 +474,7 @@ class calendar_bo
}
if ($is_private || (!$event['public'] && $filter == 'hideprivate'))
{
if($filter == 'hideprivate')
if($filter == 'showonlypublic')
{
unset($events[$id]);
$this->total--;