From 63b4764ec48bb373945fce3551ae122235222166 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Tue, 19 Apr 2016 16:13:30 +0200 Subject: [PATCH] Display a fatal error, if SQLite engine fails to connect to the database --- chat.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chat.php b/chat.php index 3d19552..287a9b3 100644 --- a/chat.php +++ b/chat.php @@ -3428,6 +3428,12 @@ function check_db(){ }else{ send_fatal_error($I['nodbsetup']); } + }else{ + if(isSet($_REQUEST['action']) && $_REQUEST['action']==='setup'){ + send_fatal_error($I['nodbsetup']); + }else{ + send_fatal_error($I['nodb']); + } } }catch(PDOException $e){ if(isSet($_REQUEST['action']) && $_REQUEST['action']==='setup'){