php3 fixes

This commit is contained in:
Miles Lott 2001-07-10 19:52:30 +00:00
parent 55652f386a
commit ea3e4e4d30
3 changed files with 6 additions and 5 deletions

View File

@ -36,7 +36,7 @@
{ {
global $phpgw; global $phpgw;
$this->contacts = &$phpgw->contacts; $this->contacts = $phpgw->contacts;
$this->so = CreateObject('addressbook.soaddressbook'); $this->so = CreateObject('addressbook.soaddressbook');
if($session) if($session)
{ {

View File

@ -900,7 +900,7 @@
$ot = 'one_'.$type; $ot = 'one_'.$type;
eval(" eval("
if (\$$ot=='on') { if (\$$ot=='on') {
\$badrtype \.= ' value=\"on\" checked'; \$badrtype .= ' value=\"on\" checked';
} }
"); ");
$badrtype .= '>'.$val; $badrtype .= '>'.$val;
@ -913,7 +913,7 @@
$tt = 'two_'.$type; $tt = 'two_'.$type;
eval(" eval("
if (\$$tt=='on') { if (\$$tt=='on') {
\$hadrtype \.= ' value=\"on\" checked'; \$hadrtype .= ' value=\"on\" checked';
} }
"); ");
$hadrtype .= '>'.$val; $hadrtype .= '>'.$val;

View File

@ -35,8 +35,9 @@
function uivcard() function uivcard()
{ {
global $phpgw; global $phpgw;
$this->template = &$phpgw->template;
$this->contacts = &$phpgw->contacts; $this->template = $phpgw->template;
$this->contacts = CreateObject('phpgwapi.contacts');
$this->browser = CreateObject('phpgwapi.browser'); $this->browser = CreateObject('phpgwapi.browser');
$this->vcard = CreateObject('phpgwapi.vcard'); $this->vcard = CreateObject('phpgwapi.vcard');
$this->bo = CreateObject('addressbook.boaddressbook',True); $this->bo = CreateObject('addressbook.boaddressbook',True);