From 50037d8ec9516ee55a847f5f22c77426ccd5fbc0 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 31 May 2016 14:47:25 +0200 Subject: [PATCH] Tabs: fix wrong parameter for array_splice() refs #11850 --- library/Icinga/Web/Widget/Tabs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Widget/Tabs.php b/library/Icinga/Web/Widget/Tabs.php index 2f8094197..0c4c17ded 100644 --- a/library/Icinga/Web/Widget/Tabs.php +++ b/library/Icinga/Web/Widget/Tabs.php @@ -249,7 +249,7 @@ EOT; if ($this->has($name)) { unset($this->tabs[$name]); if (($dropdownIndex = array_search($name, $this->dropdownTabs, true)) !== false) { - array_splice($this->dropdownTabs, $dropdownIndex, 2); + array_splice($this->dropdownTabs, $dropdownIndex, 1); } }