mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
Tabs: Be less error-prone while calling array_search
This commit is contained in:
parent
073c61903a
commit
24cb123f47
@ -242,7 +242,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)) !== false) {
|
if (($dropdownIndex = array_search($name, $this->dropdownTabs, true)) !== false) {
|
||||||
array_splice($this->dropdownTabs, $dropdownIndex, 2);
|
array_splice($this->dropdownTabs, $dropdownIndex, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user