[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [bug #14130] Contact info doesn't get added in ph
From: |
Charles Martin |
Subject: |
[Phpgroupware-tracker] [bug #14130] Contact info doesn't get added in php5, generates a warning |
Date: |
Mon, 15 Aug 2005 11:00:31 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.10) Gecko/20050717 Firefox/1.0.6 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14130>
Summary: Contact info doesn't get added in php5, generates a
warning
Project: phpGroupWare
Submitted by: cafefroid
Submitted on: lun 15.08.2005 à 11:00
Item Group: None
Category: addressbook
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Component Version: None
Platform Version: None
Reproducibility: Every Time
Planned Release: None
Fixed Release:
_______________________________________________________
Details:
class.soaddressbook.inc.php generates a warning when first adding a contact
in the addressbook and the info doesn't get added to the record. Once the
record is added, it can be modified correctly.
Fix :
class.soaddressbook.inc.php, line 612
$principal = array_merge($fields['tab_person_data'], $fields['tab_extra']);
Prefix that line with something like :
if (!(is_array($fields['tab_person_data']))){
$fields['tab_person_data'] = (array)$fields['tab_person_data'];
}
if (!(is_array($fields['tab_extra']))){
$fields['tab_extra'] = (array)$fields['tab_extra'];
}
To make sure both params are arrays
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
cafefroid |
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14130>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Phpgroupware-tracker] [bug #14130] Contact info doesn't get added in php5, generates a warning,
Charles Martin <=