diff --git a/library/Icinga/Web/Session/SessionNamespace.php b/library/Icinga/Web/Session/SessionNamespace.php index 281d09bea..bda22fd80 100644 --- a/library/Icinga/Web/Session/SessionNamespace.php +++ b/library/Icinga/Web/Session/SessionNamespace.php @@ -101,8 +101,8 @@ class SessionNamespace implements IteratorAggregate { $this->values[$key] = $value; - if (in_array($key, $this->removed)) { - unset($this->removed[array_search($key, $this->removed)]); + if (in_array($key, $this->removed, true)) { + unset($this->removed[array_search($key, $this->removed, true)]); } return $this; @@ -112,8 +112,8 @@ class SessionNamespace implements IteratorAggregate { $this->values[$key] = & $value; - if (in_array($key, $this->removed)) { - unset($this->removed[array_search($key, $this->removed)]); + if (in_array($key, $this->removed, true)) { + unset($this->removed[array_search($key, $this->removed, true)]); } return $this;