Re: [Phplib-users] PHP Notice: oohforms
Brought to you by:
nhruby,
richardarcher
From: Layne W. <la...@dr...> - 2004-11-04 22:37:36
|
Quoth Frank Bax: > I've been using phplib7.4 for some time now. I recently upgraded php fro= m=20 > 4.0.4 to 4.3.8 and now I get the following entries in my Apache log for= =20 > every element in my forms: >=20 > [Thu Nov 4 16:30:39 2004] [error] PHP Notice: Undefined index: hidden in=20 > /var/www/php/class/phplib-7.4/oohforms.inc on line 252 > [Thu Nov 4 16:30:39 2004] [error] PHP Notice: Undefined index: name in= =20 > /var/www/php/class/phplib-7.4/oohforms.inc on line 71 > [Thu Nov 4 16:30:39 2004] [error] PHP Notice: Undefined index: name in= =20 > /var/www/php/class/phplib-7.4/oohforms.inc on line 74 > [Thu Nov 4 16:30:39 2004] [error] PHP Notice: Undefined index: value i= n=20 > /var/www/php/class/phplib-7.4/oohforms.inc on line 71 > [Thu Nov 4 16:30:39 2004] [error] PHP Notice: Undefined index: value i= n=20 > /var/www/php/class/phplib-7.4/oohforms.inc on line 74 > [Thu Nov 4 16:30:39 2004] [error] PHP Notice: Undefined property: isfile=20 > in /var/www/php/class/phplib-7.4/oohforms.inc on line 268 I don't use oohforms myself, but the following changes should take care of these warnings. Please try them and let me know. If I haven't heard that these changes are flawed from anyone in a couple days I'll commit them to CVS. RCS file: /cvsroot/phplib/php-lib-stable/php/oohforms.inc,v retrieving revision 1.5 diff -r1.5 oohforms.inc 71c71 < if ($cv_tab[$k]=3D=3D"ignore") { --- > if (!empty($cv_tab[$k]) and ("ignore"=3D=3D$cv_tab[$k])) { 74c74 < $k =3D ($cv_tab[$k] ? $cv_tab[$k] : $k); --- > $k =3D ((!empty($cv_tab[$k])) ? $cv_tab[$k] : $k); 252c252 < if ($t =3D $cv_tab[$el["type"]]) { --- > if (!empty($cv_tab[$el["type"]]) and $t =3D $cv_tab[$el["type"]]) { 268c268 < if ($el->isfile) { --- > if (isset($el->isfile) and $el->isfile) { --=20 Layne Weathers |