cvs: php4 /pear/HTML Form.php

From: Date: Wed, 29 Nov 2000 13:30:55 +0000
Subject: cvs: php4 /pear/HTML Form.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2818@lists.php.net to get a copy of this message
ssb Wed Nov 29 05:30:55 2000 EDT Modified files: /php4/pear/HTML Form.php Log: * bugfix (reported by Francisco Echarte <fechaye@teleline.es>) Index: php4/pear/HTML/Form.php diff -u php4/pear/HTML/Form.php:1.5 php4/pear/HTML/Form.php:1.6 --- php4/pear/HTML/Form.php:1.5 Sat Oct 14 19:20:38 2000 +++ php4/pear/HTML/Form.php Wed Nov 29 05:30:55 2000 @@ -17,7 +17,7 @@ // | Urs Gehrig <urs@circle.ch> | // +----------------------------------------------------------------------+ // -// $Id: Form.php,v 1.5 2000/10/15 02:20:38 ssb Exp $ +// $Id: Form.php,v 1.6 2000/11/29 13:30:55 ssb Exp $ // // HTML form utility functions. // @@ -610,15 +610,15 @@ // unknown field type continue 2; } - $str = $call_cache[$params]; - if (!$str) { + $str = $call_cache[$data[0]]; + if (empty($str)) { $str = '$this->display'.ucfirst($data[0])."Row("; for ($i = 1; $i <= $params; $i++) { $str .= '$data['.$i.']'; if ($i < $params) $str .= ', '; } $str .= ');'; - $call_cache[$params] = $str; + $call_cache[$data[0]] = $str; } eval($str); }

« previous php.cvs (#2818) next »