Tabs: fix wrong parameter for array_splice()

refs 
This commit is contained in:
Alexander A. Klimov 2016-05-31 14:47:25 +02:00
parent 1be8e14772
commit 50037d8ec9
1 changed files with 1 additions and 1 deletions
library/Icinga/Web/Widget

View File

@ -249,7 +249,7 @@ EOT;
if ($this->has($name)) { if ($this->has($name)) {
unset($this->tabs[$name]); unset($this->tabs[$name]);
if (($dropdownIndex = array_search($name, $this->dropdownTabs, true)) !== false) { if (($dropdownIndex = array_search($name, $this->dropdownTabs, true)) !== false) {
array_splice($this->dropdownTabs, $dropdownIndex, 2); array_splice($this->dropdownTabs, $dropdownIndex, 1);
} }
} }