Simplify always true condition

Ref: cafd1540e4
Ref: #13392

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-04-28 18:10:06 +02:00
parent 923344ae00
commit deffc7d992
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -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();
}
}