X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=cdd71719a6e46035d1bbfa6926c404f7302dcb4b;hb=db04a78d844f5fc528bf7ffb2c2c04767ab64b5f;hp=899a6bd119ca4b8cbbb2bd9b13a95c49ea723892;hpb=0882b2df9704f9e2b32b9874dceb53a90ca72edd;p=friendica.git diff --git a/boot.php b/boot.php index 899a6bd119..cdd71719a6 100644 --- a/boot.php +++ b/boot.php @@ -43,7 +43,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_CODENAME', 'Asparagus'); define ( 'FRIENDICA_VERSION', '3.6-dev' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1234 ); +define ( 'DB_UPDATE_VERSION', 1235 ); /** * @brief Constant with a HTML line break. @@ -904,8 +904,14 @@ function login($register = false, $hiddens = false) { * @brief Used to end the current process, after saving session state. */ function killme() { + global $session_exists; + if (!get_app()->is_backend()) { - session_write_close(); + if (!$session_exists) { + session_abort(); + } else { + session_write_close(); + } } exit();