We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ba2ba0 commit df87d2bCopy full SHA for df87d2b
library/Icingadb/Web/Control/ViewModeSwitcher.php
@@ -104,7 +104,7 @@ public function getViewMode(): string
104
{
105
$viewMode = $this->getPopulatedValue($this->getViewModeParam(), $this->getDefaultViewMode());
106
107
- if (array_key_exists($viewMode, static::$viewModes)) {
+ if ($viewMode && array_key_exists($viewMode, static::$viewModes)) {
108
return $viewMode;
109
}
110
0 commit comments