[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-users] Re: cannot edit/view Addressbook ?
From: |
p.lijnzaad |
Subject: |
[Phpgroupware-users] Re: cannot edit/view Addressbook ? |
Date: |
Wed, 2 Oct 2002 12:24:13 +0200 |
On Tue, 01 Oct 2002 18:34:56 +0200,
"me" == p lijnzaad <address@hidden> wrote:
me> [error] PHP Fatal error: Unsupported operand types in
me> /foobar/phpgroupware/addressbook/inc/class.uiaddressbook.inc.php on line
681
OK,
it turns out that the $customfields variable in said file may be NULL. Below
is a patch. Kind regards,
Philip
PS: I failed to receive Ian Firla's reply that my unsubscribed
but CC-ed colleague Patrick did (thanks, but it didn't seem to help. You
have the same phpgw version that I have, or at least so would the version
numbers suggest). It looks like Mailman's digest option doesn't work. Or
maybe there has not been enough traffic for a digest to be sent around. I
now switched to direct delivery.
Index: class.uiaddressbook.inc.php
===================================================================
RCS file:
/usr/local/nfs_prog/cvsroot/phpgroupware/addressbook/inc/class.uiaddressbook.inc.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -c -r1.1.1.1 -r1.2
*** class.uiaddressbook.inc.php 8 Jul 2002 07:47:52 -0000 1.1.1.1
--- class.uiaddressbook.inc.php 2 Oct 2002 10:13:29 -0000 1.2
***************
*** 11,17 ****
* option) any later version. *
\**************************************************************************/
! /* $Id: class.uiaddressbook.inc.php,v 1.1.1.1 2002/07/08 07:47:52 philip
Exp $ */
class uiaddressbook
{
--- 11,17 ----
* option) any later version. *
\**************************************************************************/
! /* $Id: class.uiaddressbook.inc.php,v 1.2 2002/10/02 10:13:29 philip Exp $
*/
class uiaddressbook
{
***************
*** 678,684 ****
}
/* merge in extra fields */
! $qfields = $this->contacts->stock_contact_fields +
$this->extrafields + $customfields;
$fields = $this->bo->read_entry(array('id' =>
$GLOBALS['HTTP_GET_VARS']['ab_id'], 'fields' => $qfields));
$this->addressbook_form('edit','menuaction=addressbook.uiaddressbook.edit',lang('Edit'),$fields[0],$customfields);
--- 678,689 ----
}
/* merge in extra fields */
! #@ $qfields = $this->contacts->stock_contact_fields +
$this->extrafields + $customfields;
! $qfields = $this->contacts->stock_contact_fields;
! if ($this->extrafields != null) { $qfields +=
$this->extrafields; }
! if ($customfields != null) { $qfields +=
$customfields; }
!
!
$fields = $this->bo->read_entry(array('id' =>
$GLOBALS['HTTP_GET_VARS']['ab_id'], 'fields' => $qfields));
$this->addressbook_form('edit','menuaction=addressbook.uiaddressbook.edit',lang('Edit'),$fields[0],$customfields);
***************
*** 818,824 ****
}
/* merge in extra fields */
! $qfields = $this->contacts->stock_contact_fields +
$this->extrafields + $customfields;
$fields = $this->bo->read_entry(array('id' => $ab_id,
'fields' => $qfields));
--- 823,832 ----
}
/* merge in extra fields */
! #@ $qfields = $this->contacts->stock_contact_fields +
$this->extrafields + $customfields;
! $qfields = $this->contacts->stock_contact_fields;
! if ($this->extrafields != null) { $qfields +=
$this->extrafields; }
! if ($customfields != null) { $qfields +=
$customfields; }
$fields = $this->bo->read_entry(array('id' => $ab_id,
'fields' => $qfields));
--
Philip Lijnzaad
Genomics Laboratory
Dept. of Biomedical Genetics
University Medical Center (UMC), Utrecht
Stratenum, STR 3.223
P.O. Box 85060, 3508 AB Utrecht
(Universiteitsweg 100, 3584 CG Utrecht)
The Netherlands
tel: +31 (0)30 253 8464
fax: +31 (0)30 253 9035