You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
364 B

diff --git a/app/inc/init.php b/app/inc/init.php
index 0e8fb19..272d83c 100644
--- a/app/inc/init.php
+++ b/app/inc/init.php
@@ -97,4 +97,6 @@ require_once __DIR__ . '/i18n.php';
require_once __DIR__ . '/smarty.php';
require_once __DIR__ . '/services.php';
-Services::init($connect, $smarty);
+if (isset($connect)) {
+ Services::init($connect, $smarty);
+}