mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Session: Be less error-prone while calling array_search
This commit is contained in:
parent
24cb123f47
commit
449a19c3a3
@ -70,8 +70,8 @@ abstract class Session extends SessionNamespace
|
|||||||
public function getNamespace($identifier)
|
public function getNamespace($identifier)
|
||||||
{
|
{
|
||||||
if (!isset($this->namespaces[$identifier])) {
|
if (!isset($this->namespaces[$identifier])) {
|
||||||
if (in_array($identifier, $this->removedNamespaces)) {
|
if (in_array($identifier, $this->removedNamespaces, true)) {
|
||||||
unset($this->removedNamespaces[array_search($identifier, $this->removedNamespaces)]);
|
unset($this->removedNamespaces[array_search($identifier, $this->removedNamespaces, true)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->namespaces[$identifier] = new SessionNamespace();
|
$this->namespaces[$identifier] = new SessionNamespace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user