From 8dd4fbbc3f1488826f5c306f4bbd19b0fdd48cbb Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 18 Jul 2007 14:02:06 +0000 Subject: config param optional --- dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3