PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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']
);