diff --git a/system/database.php b/system/database.php index 34b4574a..b9dc6cc6 100644 --- a/system/database.php +++ b/system/database.php @@ -106,6 +106,7 @@ try { 'persistent' => @$config['database_persistent'] )); + global $db; $db = POT::getInstance()->getDBHandle(); $capsule = new Capsule; $capsule->addConnection([