PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_Table » Bug #9593

incorrect mapping

Details

Submitted2006-12-10 14:57 UTC
Frommvonarx at tiscali dot ch
Assignedwiesemann
StatusClosed
PackageDB_Table
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2006-12-10 14:57 UTC] mvonarx at tiscali dot ch

Description:
------------
according to HTML_QuickForm_hidden documentation the classconstructor expects 3 parameters
$elementName
$value
$attributes

On line 448 in DB_Table_QuickForm the constructor of HTML_QuickForm_hidden is called only with 2 parameters.

this produces following warning.
Warning: htmlspecialchars() expects parameter 1 to be string, array given in ..\pear\HTML\Common.php on line 150

Test script:
---------------
DB_Table_QuickForm 1.4.0:
case 'hidden':

$element =& HTML_QuickForm::createElement(
$col['qf_type'],
$elemname,
$col['qf_attrs']
);

should be changed to:
case 'hidden':

$element =& HTML_QuickForm::createElement(
$col['qf_type'],
$elemname,
'', // valueparameter
$col['qf_attrs']
);