From 4157660b0eb1089ca748fe8ae324c2603a2bdcba Mon Sep 17 00:00:00 2001 From: jengo Date: Fri, 9 Mar 2001 23:33:09 +0000 Subject: [PATCH] Rolling back changes to the const --- phpgwapi/inc/class.accounts_shared.inc.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/phpgwapi/inc/class.accounts_shared.inc.php b/phpgwapi/inc/class.accounts_shared.inc.php index 9b41c22b79..c04a258fd8 100644 --- a/phpgwapi/inc/class.accounts_shared.inc.php +++ b/phpgwapi/inc/class.accounts_shared.inc.php @@ -31,18 +31,11 @@ * I might move this to the accounts_shared if it stays around * \**************************************************************************/ - function accounts($account_id = False, $db = '') + function accounts($account_id = False) { global $phpgw, $phpgw_info; - if (! is_object($db)) - { - $this->db = $phpgw->db; - } - else - { - $this->db = $db; - } + $this->db = $phpgw->db; if (! isset($account_id)) {