Check if DB is open
This commit is contained in:
parent
df6f96cf25
commit
0ff17af833
1 changed files with 2 additions and 0 deletions
|
|
@ -105,6 +105,8 @@ class Database
|
|||
else
|
||||
{
|
||||
echo '<h2 class="error">Erreur de connexion !</h2>';
|
||||
$this->is_open=false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
$this->db=$a;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue