mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge remote-tracking branch 'origin/develop' into feature/backoffice-full-moon-design
# Conflicts: # application/ajaxwebpage.class.inc.php # application/csvpage.class.inc.php # application/displayblock.class.inc.php # application/itopwebpage.class.inc.php # application/utils.inc.php # application/webpage.class.inc.php # application/xmlpage.class.inc.php # datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml # datamodels/2.x/itop-knownerror-light/datamodel.itop-knownerror-light.xml # datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml # datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml # js/components/breadcrumbs.js # pages/navigator.php # test/core/DBSearchTest.php
This commit is contained in:
@@ -1820,9 +1820,8 @@ class UserRights
|
||||
// The bug has been fixed in PHP 7.2, but in case session_regenerate_id()
|
||||
// fails we just silently ignore the error and keep the same session id...
|
||||
$old_error_handler = set_error_handler(array(__CLASS__, 'VoidErrorHandler'));
|
||||
session_regenerate_id();
|
||||
if ($old_error_handler !== null)
|
||||
{
|
||||
session_regenerate_id(true);
|
||||
if ($old_error_handler !== null) {
|
||||
set_error_handler($old_error_handler);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user