steffen: server/kolab-webadmin/kolab-webadmin/php/admin/include form.class.php, 1.19, 1.20
cvs at intevation.de
cvs at intevation.de
Mon Jun 20 13:35:45 CEST 2005
Author: steffen
Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/php/admin/include
In directory doto:/tmp/cvs-serv8383/kolab-webadmin/php/admin/include
Modified Files:
form.class.php
Log Message:
Issue813, take two...
Index: form.class.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/php/admin/include/form.class.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- form.class.php 20 Jun 2005 11:07:00 -0000 1.19
+++ form.class.php 20 Jun 2005 11:35:43 -0000 1.20
@@ -61,15 +61,12 @@
$size = 60;
foreach( $this->entries as $key => $value ) {
- if( !isset( $value['type'] ) ) $value['type'] = '';
+ if( !isset( $value['type'] ) || $value['type']=='' ) $value['type'] = 'text';
if( !isset( $value['comment'] ) ) $value['comment'] = '';
if( !isset( $value['attrs'] ) ) $value['attrs'] = '';
if( !isset( $value['value'] ) ) $value['value'] = '';
switch( $value['type'] ) {
case 'hidden': continue;
- case '':
- // Default is text
- $value['type'] = 'text';
case 'password':
if( ereg( 'readonly', $value['attrs'] ) ) {
// If readonly, skip it -- passwords are at most write-only
More information about the commits
mailing list