mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Guard e_session::setDefaultSystemConfig() to dedent function
This commit is contained in:
@@ -194,8 +194,8 @@ class e_session
|
||||
*/
|
||||
public function setDefaultSystemConfig()
|
||||
{
|
||||
if(!$this->getSessionId())
|
||||
{
|
||||
if ($this->getSessionId()) return $this;
|
||||
|
||||
$config = array(
|
||||
'ValidateRemoteAddr' => (e_SECURITY_LEVEL >= self::SECURITY_LEVEL_BALANCED),
|
||||
'ValidateHttpVia' => (e_SECURITY_LEVEL >= self::SECURITY_LEVEL_HIGH),
|
||||
@@ -244,7 +244,6 @@ class e_session
|
||||
|
||||
$this->setConfig($config)
|
||||
->setOptions($options);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user