Small syntax changes

This commit is contained in:
Thomas Gelf 2014-02-18 18:11:44 +00:00
parent ac0faa26a8
commit 6b308986d1
1 changed files with 10 additions and 11 deletions

View File

@ -29,16 +29,15 @@
namespace Icinga\Web\Widget;
use \Icinga\Application\Icinga;
use \Icinga\Application\Config as IcingaConfig;
use \Icinga\Application\Logger;
use \Icinga\Exception\ConfigurationError;
use \Icinga\Web\Widget\Widget;
use \Icinga\Web\Widget\Dashboard\Pane;
use \Icinga\Web\Widget\Dashboard\Component as DashboardComponent;
use \Icinga\Web\Url;
use \Zend_View_Abstract;
use Icinga\Application\Icinga;
use Icinga\Application\Config as IcingaConfig;
use Icinga\Application\Logger;
use Icinga\Exception\ConfigurationError;
use Icinga\Web\Widget\AbstractWidget;
use Icinga\Web\Widget\Dashboard\Pane;
use Icinga\Web\Widget\Dashboard\Component as DashboardComponent;
use Icinga\Web\Url;
use Zend_View_Abstract;
/**
* Dashboards display multiple views on a single page
@ -326,7 +325,7 @@ class Dashboard implements Widget
public function determineActivePane()
{
$active = $this->getTabs()->getActiveName();
if (!$active) {
if (! $active) {
if ($active = Url::fromRequest()->getParam($this->tabParam)) {
if ($this->isEmptyPane($active)) {
$active = $this->setDefaultPane();