Simplify always true condition
Ref: cafd1540e4
Ref: #13392
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
923344ae00
commit
deffc7d992
@ -147,11 +147,9 @@ class Session
|
||||
// Ignore errors as this might have been destroyed in other
|
||||
// request meanwhile
|
||||
@session_destroy();
|
||||
} elseif (function_exists('session_abort')) {
|
||||
// PHP 5.6 and newer
|
||||
session_abort();
|
||||
} else {
|
||||
session_write_close();
|
||||
// do not use session_write_close, see issue #13392
|
||||
session_abort();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user