[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


                 Summary: Contact info doesn't get added in php5, generates a
                 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: 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 :, 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:


  Message posté via/par Savannah

reply via email to

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