summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 9cab98a..5b41f45 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -22,7 +22,7 @@ class it_dbi
'server' => "localhost",
'server_update' => null,
'user' => "itools",
- 'pw' => "24%^jXC~",
+ 'pw' => "",
'safety' => 1, /* 0= never die, 1=die if query invalid, 2=die also if no results */
'keyfield' => "ID",
'createclasses' => false,
@@ -52,7 +52,7 @@ function it_dbi($config = array(), $query = null)
$config = array('table' => $config);
# Create current settings
- foreach ($config + $this->_defaultconfig as $key => $value)
+ foreach ($config + (array)$GLOBALS['it_dbi_defaultconfig'] + $this->_defaultconfig as $key => $value)
{
$var = "_$key";
$this->$var = $value;