phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.custom_fields.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.custom_fields.inc.php
Date: Mon, 09 Oct 2006 13:45:37 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   06/10/09 13:45:37

Modified files:
        inc            : class.custom_fields.inc.php 

Log message:
        E_NOTICES

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.custom_fields.inc.php?cvsroot=phpgwapi&r1=1.7&r2=1.8

Patches:
Index: class.custom_fields.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.custom_fields.inc.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- class.custom_fields.inc.php 9 Oct 2006 13:26:55 -0000       1.7
+++ class.custom_fields.inc.php 9 Oct 2006 13:45:37 -0000       1.8
@@ -8,7 +8,7 @@
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package phpgwapi
-       * @version $Id: class.custom_fields.inc.php,v 1.7 2006/10/09 13:26:55 
sigurdne Exp $
+       * @version $Id: class.custom_fields.inc.php,v 1.8 2006/10/09 13:45:37 
sigurdne Exp $
        */
 
        /**
@@ -299,9 +299,9 @@
                        $value_set=array(
                                'input_text'    => $attrib['input_text'],
                                'statustext'    => $attrib['statustext'],
-                               'search'        => $attrib['search'],
-                               'list'          => $attrib['list'],
-                               'history'       => $attrib['history'],
+                               'search'        => 
(isset($attrib['search'])?$attrib['search']:''),
+                               'list'          => 
(isset($attrib['list'])?$attrib['list']:''),
+                               'history'       => 
(isset($attrib['history'])?$attrib['history']:''),
                                );
 
                        $value_set      = 
$this->db->validate_update($value_set);
@@ -362,7 +362,7 @@
                                
$this->oProc->AlterColumn($attrib_table,$attrib['column_name'],$attrib['column_info']);
                 
                        }
                        
-                       if($attrib['new_choice'])
+                       if(isset($attrib['new_choice']) && 
$attrib['new_choice'])
                        {
                                $choice_id = 
$this->bocommon->next_id($choice_table 
,array('appname'=>$attrib['appname'],'location'=>$attrib['location'],'attrib_id'=>$attrib['id']));
 
@@ -380,7 +380,7 @@
                                . "VALUES ($values)",__LINE__,__FILE__);
                        }
 
-                       if($attrib['delete_choice'])
+                       if(isset($attrib['delete_choice']) && 
is_array($attrib['delete_choice']))
                        {
                                for 
($i=0;$i<count($attrib['delete_choice']);$i++)
                                {




reply via email to

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