[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/02: Check if DB is open
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/02: Check if DB is open |
Date: |
Thu, 24 Mar 2016 21:07:41 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 0ff17af833582070fc32cd9d9be7cc415f3d7464
Author: Dany De Bontridder <address@hidden>
Date: Thu Mar 24 22:06:10 2016 +0100
Check if DB is open
---
include/lib/class_database.php | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/lib/class_database.php b/include/lib/class_database.php
index bd24ce9..3d6184a 100644
--- a/include/lib/class_database.php
+++ b/include/lib/class_database.php
@@ -105,6 +105,8 @@ class Database
else
{
echo '<h2 class="error">Erreur de connexion !</h2>';
+ $this->is_open=false;
+ return;
}
}
$this->db=$a;