Display a fatal error, if SQLite engine fails to connect to the database

This commit is contained in:
Daniel Winzen
2016-04-19 16:13:30 +02:00
parent 15a4eb62bc
commit 63b4764ec4

View File

@ -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'){