summaryrefslogtreecommitdiffstats
path: root/app/class/database.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/database.class.php')
-rw-r--r--app/class/database.class.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/class/database.class.php b/app/class/database.class.php
index 3d94e16..a2cab42 100644
--- a/app/class/database.class.php
+++ b/app/class/database.class.php
@@ -104,15 +104,12 @@ abstract class database
*/
public static function checkConfig() : bool
{
- try
- {
- $db = self::getInstance();
- }
- catch (Exception $e)
- {
+ global $_SCROTT;
+
+ if (!isset($_SCROTT['conf']))
return false;
- }
+ $db = self::getInstance();
return true;
}