From 9a99d34798283418ef572a1fabb5b05de86e6e22 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Mon, 23 Jan 2017 17:43:54 +0100 Subject: [PATCH] Fix update from older versions --- CHANGELOG | 3 +++ chat.php | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 474cc08..1069c30 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +Version 1.23.4 - Jan. 23, 2017 +Fix update from older versions + Version 1.23.3 - Jan. 17, 2017 Fix restoring members in backup and restore diff --git a/chat.php b/chat.php index 114e667..dce7900 100644 --- a/chat.php +++ b/chat.php @@ -54,7 +54,6 @@ route(); function route(){ global $U; if(!isset($_REQUEST['action'])){ - update_db(); send_login(); }elseif($_REQUEST['action']==='view'){ check_session(); @@ -220,7 +219,6 @@ function route_admin(){ function route_setup(){ global $U; - update_db(); if(!valid_admin()){ send_alogin(); } @@ -4097,6 +4095,7 @@ function check_db(){ }elseif($_REQUEST['action']==='init'){ init_chat(); } + update_db(); } function load_fonts(){ @@ -4151,7 +4150,7 @@ function load_lang(){ function load_config(){ mb_internal_encoding('UTF-8'); - define('VERSION', '1.23.3'); // Script version + define('VERSION', '1.23.4'); // Script version define('DBVERSION', 41); // Database layout version define('MSGENCRYPTED', false); // Store messages encrypted in the database to prevent other database users from reading them - true/false - visit the setup page after editing! define('ENCRYPTKEY', 'MY_KEY'); // Encryption key for messages