Changeset 7797
- Timestamp:
- 03/11/08 11:42:26 (5 years ago)
- Location:
- lang/php/HTML_FillInForm/trunk
- Files:
-
- 24 modified
-
lib/HTML/FillInForm.class.php (modified) (3 diffs)
-
t/00_base.t.php (modified) (1 diff)
-
t/01_form.t.php (modified) (1 diff)
-
t/02_hidden.t.php (modified) (1 diff)
-
t/03_checkbox.t.php (modified) (1 diff)
-
t/04_select.t.php (modified) (3 diffs)
-
t/05_textarea.t.php (modified) (1 diff)
-
t/06_radio.t.php (modified) (1 diff)
-
t/07_reuse.t.php (modified) (2 diffs)
-
t/08_multiple_objects.t.php (modified) (2 diffs)
-
t/09_default_type.t.php (modified) (2 diffs)
-
t/10_escape.t.php (modified) (1 diff)
-
t/11_target.t.php (modified) (1 diff)
-
t/12_mult.t.php (modified) (1 diff)
-
t/13_textfield.t.php (modified) (1 diff)
-
t/14_password.t.php (modified) (1 diff)
-
t/15_multiple_flields.t.php (modified) (1 diff)
-
t/16_ignore_fields.t.php (modified) (2 diffs)
-
t/17_xhtml.t.php (modified) (1 diff)
-
t/18_ignore_fdat.t.php (modified) (1 diff)
-
t/19_extra.t.php (modified) (1 diff)
-
t/20_scalarref.t.php (modified) (1 diff)
-
t/21_disable_fields.t.php (modified) (1 diff)
-
t/22_escape_option.t.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/php/HTML_FillInForm/trunk/lib/HTML/FillInForm.class.php
r7455 r7797 39 39 * fix: 値が複数ある場合のバグ修正(02_hidden.t.php) 40 40 * fix: 同名のnameが存在する場合のバグ修正(12_mult.t.php) 41 * 2008/03/11 ver 0.03 fix: 各種警告除去 41 42 * 42 43 * @author ittetsu miyazaki<ittetsu.miyazaki _at_ gmail.com> 43 * @version 0.0 244 * @version 0.03 44 45 * @package HTML 45 46 * @access public … … 407 408 408 409 function _parse_option($text,&$attrs) { 409 if ( $this->select['multiple']) {410 if ( isset($this->select['multiple']) ) { 410 411 $vals =& $this->_get_param($this->select['name']); 411 412 if ( is_null($vals) ) return $text; … … 471 472 472 473 function & _get_param_one ($name) { 473 $val =& $this->_get_param($name); 474 return is_array($val) ? array_shift($val) : $val; 474 $vals =& $this->_get_param($name); 475 $val = is_array($vals) ? array_shift($vals) : $vals; 476 return $val; 475 477 } 476 478 -
lang/php/HTML_FillInForm/trunk/t/00_base.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/01_form.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 2 4 3 5 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/02_hidden.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/03_checkbox.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/04_select.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; … … 11 14 } 12 15 function param ($key) { 13 return $this->$key;16 return @$this->$key; 14 17 } 15 18 } … … 118 121 119 122 $cgi = new CGI ( array( 120 foo1=> '0',121 foo2=> array('bar1', 'bar2'),122 foo3=> ''123 'foo1' => '0', 124 'foo2' => array('bar1', 'bar2'), 125 'foo3' => '' 123 126 )); 124 127 -
lang/php/HTML_FillInForm/trunk/t/05_textarea.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/06_radio.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/07_reuse.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; … … 14 17 15 18 $fdat = array( 16 foo1=> array('bar1'),17 foo2=> 'bar2'19 'foo1' => array('bar1'), 20 'foo2' => 'bar2' 18 21 ); 19 22 -
lang/php/HTML_FillInForm/trunk/t/08_multiple_objects.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; … … 11 14 } 12 15 function param ($key) { 13 return $this->$key;16 return @$this->$key; 14 17 } 15 18 } -
lang/php/HTML_FillInForm/trunk/t/09_default_type.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; … … 14 17 15 18 $fdat = array( 16 foo1=> 'bar1',17 foo2=> 'bar2'19 'foo1' => 'bar1', 20 'foo2' => 'bar2' 18 21 ); 19 22 -
lang/php/HTML_FillInForm/trunk/t/10_escape.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/11_target.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/12_mult.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/13_textfield.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/14_password.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/15_multiple_flields.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/16_ignore_fields.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; … … 11 14 } 12 15 function param ($key) { 13 return $this->$key;16 return @$this->$key; 14 17 } 15 18 } -
lang/php/HTML_FillInForm/trunk/t/17_xhtml.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/18_ignore_fdat.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/19_extra.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/20_scalarref.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/21_disable_fields.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 4 2 5 3 6 require_once 'Test.class.php'; -
lang/php/HTML_FillInForm/trunk/t/22_escape_option.t.php
r7455 r7797 1 1 <?php 2 3 error_reporting( E_ALL ); 2 4 3 5 require_once 'Test.class.php';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)