Display a fatal error, if SQLite engine fails to connect to the database
This commit is contained in:
6
chat.php
6
chat.php
@ -3428,6 +3428,12 @@ function check_db(){
|
|||||||
}else{
|
}else{
|
||||||
send_fatal_error($I['nodbsetup']);
|
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){
|
}catch(PDOException $e){
|
||||||
if(isSet($_REQUEST['action']) && $_REQUEST['action']==='setup'){
|
if(isSet($_REQUEST['action']) && $_REQUEST['action']==='setup'){
|
||||||
|
Reference in New Issue
Block a user