From a6dda3c3c369eb349040b2a7eaaa2b55fdb8a931 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Sat, 4 Apr 2009 21:19:23 +0000 Subject: allow calling constructor without p --- it_user.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_user.class b/it_user.class index 4b0ebc6..85c44bd 100644 --- a/it_user.class +++ b/it_user.class @@ -61,7 +61,7 @@ class it_user extends it_dbi * Constructor * @param $p array(key => value) of configuration data */ -function it_user($p) +function it_user($p = array()) { $this->p = $p + array( 'uid_field' => 'ID', -- cgit v1.2.3