"fixed warning under php5.2.6"

This commit is contained in:
Ralf Becker 2008-06-22 08:51:38 +00:00
parent f66e2e4004
commit 03d9baf5c6

View File

@ -2,10 +2,12 @@
/** /**
* eGroupWare eTemplate Widget for custom fields * eGroupWare eTemplate Widget for custom fields
* *
* @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package etemplate * @package etemplate
* @link http://www.egroupware.org * @subpackage extensions
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* @version $Id$ * @version $Id$
*/ */
@ -17,12 +19,6 @@
* - use-private to display only (non-)private cf's (0=regular ones, 1=private ones, default both) * - use-private to display only (non-)private cf's (0=regular ones, 1=private ones, default both)
* *
* Private cf's the user has no right to see (neither him nor his memberships are mentioned) are never displayed. * Private cf's the user has no right to see (neither him nor his memberships are mentioned) are never displayed.
*
* @package etemplate
* @subpackage extensions
* @author RalfBecker-At-outdoor-training.de
* @author Cornelius Weiss <egw@von-und-zu-weiss.de>
* @license GPL - GNU General Public License
*/ */
class customfields_widget class customfields_widget
{ {
@ -55,6 +51,9 @@
'date-time'=> 'Date+Time', 'date-time'=> 'Date+Time',
'select-account' => 'Select account', 'select-account' => 'Select account',
'button' => 'Button', // button to execute javascript 'button' => 'Button', // button to execute javascript
'url' => 'Url',
'url-email'=> 'EMail',
'url-phone'=> 'Phone number',
'link-entry' => 'Select entry', // should be last type, as the individual apps get added behind 'link-entry' => 'Select entry', // should be last type, as the individual apps get added behind
); );
@ -274,7 +273,7 @@
$tmparray=array( $tmparray=array(
'size' => $field['rows'].($field['len'] >0 ? ','.(int)$field['len'] : '') 'size' => $field['rows'].($field['len'] >0 ? ','.(int)$field['len'] : '')
); );
if (array_key_exists('readonly',$field['values'])) if (is_array($field['values']) && array_key_exists('readonly',$field['values']))
{ {
$tmparray['readonly']='readonly'; $tmparray['readonly']='readonly';
} }