From 3ee4ab412aae77c03dbd0429b59a8964f1c1204e Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 9 Jul 2001 18:06:03 +0000 Subject: [PATCH] Replace refs with copies to avoid php3 problems, i hope --- addressbook/inc/class.boaddressbook.inc.php | 3 +-- addressbook/inc/class.soaddressbook.inc.php | 2 +- addressbook/inc/class.uiaddressbook.inc.php | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/addressbook/inc/class.boaddressbook.inc.php b/addressbook/inc/class.boaddressbook.inc.php index d7cac55124..90f740bbef 100644 --- a/addressbook/inc/class.boaddressbook.inc.php +++ b/addressbook/inc/class.boaddressbook.inc.php @@ -21,7 +21,6 @@ 'add_entry' => True, 'add_vcard' => True, 'add_email' => True, - 'copy_entry' => True, 'update_entry' => True ); @@ -197,7 +196,7 @@ . $phpgw->link('/addressbook/main.php',"menuaction=addressbook.uiaddressbook.view&ab_id=$ab_id&referer=$referer")); } - function copy_entry($ab_id) + function OLDcopy_entry($ab_id) { global $phpgw,$phpgw_info; diff --git a/addressbook/inc/class.soaddressbook.inc.php b/addressbook/inc/class.soaddressbook.inc.php index 77679eb126..28baa50ad6 100644 --- a/addressbook/inc/class.soaddressbook.inc.php +++ b/addressbook/inc/class.soaddressbook.inc.php @@ -23,7 +23,7 @@ $phpgw->contacts = CreateObject('phpgwapi.contacts'); - $this->contacts = &$phpgw->contacts; + $this->contacts = $phpgw->contacts; $this->rights = $rights; } diff --git a/addressbook/inc/class.uiaddressbook.inc.php b/addressbook/inc/class.uiaddressbook.inc.php index 4da79fb6b4..fab61accbf 100644 --- a/addressbook/inc/class.uiaddressbook.inc.php +++ b/addressbook/inc/class.uiaddressbook.inc.php @@ -57,19 +57,19 @@ $phpgw->nextmatchs = CreateObject('phpgwapi.nextmatchs'); $this->bo = CreateObject('addressbook.boaddressbook',True); - $this->template = &$phpgw->template; - $this->contacts = &$phpgw->contacts; + $this->template = $phpgw->template; + $this->contacts = $this->bo->so->contacts; $this->cat = CreateObject('phpgwapi.categories'); $this->company = CreateObject('phpgwapi.categories','addressbook_company'); - $this->prefs = &$phpgw_info['user']['preferences']['addressbook']; + $this->prefs = $phpgw_info['user']['preferences']['addressbook']; - $this->start = &$this->bo->start; - $this->limit = &$this->bo->limit; - $this->query = &$this->bo->query; - $this->sort = &$this->bo->sort; - $this->order = &$this->bo->order; - $this->filter = &$this->bo->filter; - $this->cat_id = &$this->bo->cat_id; + $this->start = $this->bo->start; + $this->limit = $this->bo->limit; + $this->query = $this->bo->query; + $this->sort = $this->bo->sort; + $this->order = $this->bo->order; + $this->filter = $this->bo->filter; + $this->cat_id = $this->bo->cat_id; if($this->debug) { $this->_debug_sqsof(); } /* _debug_array($this); */ }