On Tue, 18 Jun 2002, Thomas Besser wrote:
Fatal error: Unsupported operand types in
/usr/share/phpgroupware/addressbook/inc/class.uiaddressbook.inc.php on
line 681
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.