summaryrefslogtreecommitdiff
path: root/dbi.class
diff options
context:
space:
mode:
authorUrban Müller2007-07-18 14:02:06 +0000
committerUrban Müller2007-07-18 14:02:06 +0000
commit8dd4fbbc3f1488826f5c306f4bbd19b0fdd48cbb (patch)
tree3aec298b0e650e3306ca2cf0a7c89a795a23e89f /dbi.class
parent8f61176da8e3f215cec70b3320c956d3e3ace73f (diff)
downloaditools-8dd4fbbc3f1488826f5c306f4bbd19b0fdd48cbb.tar.gz
itools-8dd4fbbc3f1488826f5c306f4bbd19b0fdd48cbb.tar.bz2
itools-8dd4fbbc3f1488826f5c306f4bbd19b0fdd48cbb.zip
config param optional
Diffstat (limited to 'dbi.class')
-rw-r--r--dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbi.class b/dbi.class
index 84f780d..e905c01 100644
--- a/dbi.class
+++ b/dbi.class
@@ -45,7 +45,7 @@ class it_dbi
* @param $config array(key => value) of configuration data
* @param $query Optional initial query to run
*/
-function it_dbi($config, $query = null)
+function it_dbi($config = array(), $query = null)
{
# Shortcut: String config means use this table with default values
if (!is_array($config))