phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-users] adressbook -> fatal error


From: Thomas Besser
Subject: Re: [Phpgroupware-users] adressbook -> fatal error
Date: Wed, 19 Jun 2002 08:34:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.0.0) Gecko/20020615 Debian/1.0.0-3

Ola Thomas Atkinson schrieb:
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.

That's it. Now it works. Thanks a lot.

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.

I do it on my own risk ;-)

Thomas

--
Universität Karlsruhe
archIT [IT-Service der Fakultät Architektur]
Gebäude 11.40, Raum 010
+49 721 608 6024





reply via email to

[Prev in Thread] Current Thread [Next in Thread]