phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] addressbook/inc class.uiaddressbook_prefs.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] addressbook/inc class.uiaddressbook_prefs.inc.php
Date: Fri, 21 Sep 2007 12:51:28 +0000

CVSROOT:        /sources/phpgroupware
Module name:    addressbook
Changes by:     Sigurd Nes <sigurdne>   07/09/21 12:51:28

Modified files:
        inc            : class.uiaddressbook_prefs.inc.php 

Log message:
        notices

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/addressbook/inc/class.uiaddressbook_prefs.inc.php?cvsroot=phpgroupware&r1=1.4&r2=1.5

Patches:
Index: class.uiaddressbook_prefs.inc.php
===================================================================
RCS file: 
/sources/phpgroupware/addressbook/inc/class.uiaddressbook_prefs.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- class.uiaddressbook_prefs.inc.php   15 May 2005 13:34:29 -0000      1.4
+++ class.uiaddressbook_prefs.inc.php   21 Sep 2007 12:51:28 -0000      1.5
@@ -255,7 +255,7 @@
                                $temp=get_var('remove_me',array('get','post'));
                                /*print '<br /><B>remove type'.$temp.'</B><br 
/>';*/
                                
-                               
if($this->selected_fields[$this->org_or_person][$temp])
+                               
if(isset($this->selected_fields[$this->org_or_person][$temp]) && 
$this->selected_fields[$this->org_or_person][$temp])
                                {
                                        //if we have found an element to be 
removed
                                        //remove it from here
@@ -364,7 +364,7 @@
                        {
                                //If it in selected_fields, then it has been 
selected, and it doesnt go into
                                //the fields_show_selectbox array
-                               
if((!$this->selected_fields[$this->org_or_person][$falsefield]))
+                               
if(!isset($this->selected_fields[$this->org_or_person][$falsefield]) || 
!$this->selected_fields[$this->org_or_person][$falsefield])
                                {
                                        if($this->org_or_person=='Persons')
                                        {
@@ -396,20 +396,23 @@
                                }
                        //Constructing commtype descriptions
                        }
+
                        
$possible_comtypes=$this->linearize_query($this->contacts->get_contact_comm_descr(),'comm_description');
+
+                       
if(isset($this->selected_fields[$this->org_or_person]['comm_types']) && 
is_array($possible_comtypes))
+                       {
                        while(list($k,$v)=each($possible_comtypes))
                        {
                                
if(!$this->selected_fields[$this->org_or_person]['comm_types'][$v])
                                {
                                //      print "<B><br />Commtypes 
$this->selected_fields[$this->org_or_person]['comm_types'][$v]</b><br />";
                                        
$this->fields_show_selectbox['comm_types'][$v]=$v;      
-                                       
                                }
                                else
                                {
                                //      print "<B><br />langfields 
$this->lang_fields[$v]=$v</b><br />";
                                        $this->lang_fields[$v]=$v;
-
+                                       }
                                }
                        }
                        /*




reply via email to

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