Now using copyobj() - please advise if it breaks and how

This commit is contained in:
Miles Lott 2003-10-18 11:12:19 +00:00
parent 2da29d2861
commit dec0934ee3

View File

@ -140,7 +140,8 @@
function contacts_($useacl=True)
{
$this->db = $GLOBALS['phpgw']->db;
// $this->db = $GLOBALS['phpgw']->db;
copyobj($GLOBALS['phpgw']->db,$this->db);
if($useacl)
{
$this->grants = $GLOBALS['phpgw']->acl->get_grants('addressbook');
@ -505,7 +506,8 @@
}
if ($DEBUG) { echo '<br>' . $sql; }
$db2 = $this->db;
// $db2 = $this->db;
copyobj($this->db,$db2);
$this->db->query($sql,__LINE__,__FILE__);
$this->total_records = $this->db->num_rows();