Skip to content

Commit

Permalink
Fix conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 13, 2014
1 parent c1d4c8b commit 01cf59a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kronolith/lib/Kronolith.php
Expand Up @@ -220,8 +220,8 @@ static public function listEvents(
}

// Resource calendars
if (count($GLOBALS['calendar_manager']->get(Kronolith::DISPLAY_RESOURCE_CALENDARS) &&
!empty($GLOBALS['conf']['resource']['driver']))) {
if (count($GLOBALS['calendar_manager']->get(Kronolith::DISPLAY_RESOURCE_CALENDARS)) &&
!empty($GLOBALS['conf']['resource']['driver'])) {

$driver = self::getDriver('Resource');
foreach ($GLOBALS['calendar_manager']->get(Kronolith::DISPLAY_RESOURCE_CALENDARS) as $calendar) {
Expand Down

0 comments on commit 01cf59a

Please sign in to comment.