Tabs: Be less error-prone while calling array_search

This commit is contained in:
Johannes Meyer 2015-07-31 11:04:36 +02:00
parent 073c61903a
commit 24cb123f47
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ EOT;
{
if ($this->has($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);
}
}