[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-users] adressbook -> fatal error
From: |
Ola Thomas Atkinson |
Subject: |
Re: [Phpgroupware-users] adressbook -> fatal error |
Date: |
Tue, 18 Jun 2002 16:00:29 +0200 (CEST) |
On Tue, 18 Jun 2002, Thomas Besser wrote:
> After importing the old adress informations over CSV the adressbook
> quits now with following fatal error by editing/viewing of items:
>
> Fatal error: Unsupported operand types in
> /usr/share/phpgroupware/addressbook/inc/class.uiaddressbook.inc.php on
> line 681
>
> Any help?
I had this problem just yesterday, and found that the problem is due to
using '+' to concatenate arrays. Line 681 in
/usr/share/phpgroupware/addressbook/inc/class.uiaddressbook.inc.php looks
like this:
$qfields = $this->contacts->stock_contact_fields + $this->extrafields +
$customfields;
By changing this to
$qfields = array_merge($this->contacts->stock_contact_fields,
$this->extrafields, $customfields);
one gets the desired result, without errors.
The same needs to be done on line 821 (or thereabouts) in the same file.
Observe: This is a fix I did myself after two days of trying out
phpGroupWare, therefore there _might_ be reasons for trying to use '+'
that I am aware of. However, that doesn't work, and my version does, so I
believe it should be OK.
--
Ola Thomas Atkinson
Orakeltjenesten, NTNU
Helpdesk, Norwegian University of Science and Technology