Do not register context switch on first load

refs #4190
This commit is contained in:
Johannes Meyer 2014-03-25 08:32:20 +01:00
parent 2e19baf503
commit 5d86eab8c4
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ class Monitoring_TimelineController extends ActionController
$this->view->timeline = $timeline;
$this->view->intervalFormat = $this->getIntervalFormat();
$this->view->switchedContext = $timeline->getCalculationBase(false) !== $timeline->getCalculationBase(true);
$oldBase = $timeline->getCalculationBase(false);
$this->view->switchedContext = $oldBase !== null && $oldBase !== $timeline->getCalculationBase(true);
}
/**