From 0269d7655de3055107fa28784d18189228af1008 Mon Sep 17 00:00:00 2001 From: Sebastiaan Lauwers Date: Tue, 4 Mar 2008 17:29:34 +0100 Subject: [PATCH] Bugfix (yet another) Fixing an error I made and adding a variable init. --- Source/carbon/database/Database.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/carbon/database/Database.php b/Source/carbon/database/Database.php index a682d8f..694b6e4 100644 --- a/Source/carbon/database/Database.php +++ b/Source/carbon/database/Database.php @@ -13,9 +13,12 @@ function &Database($params = '', $active_record = false) { if (is_string($params) && strpos($params, '://') == false) { + + $active_group = ''; + include(APP_PATH . 'config/database' . FILE_EXT); - $group = ($params == '') ? $active_record : $params; + $group = ($params == '') ? $active_group : $params; if (!isset($database[$group])) { -- 2.11.4.GIT