#4 PHP Notice generate with "A HTML with tables" exemple

closed-wont-fix
nobody
5
2004-12-31
2004-08-11
Anonymous
No

PHP Notice generate with "A HTML with tables" exemple

I have many "PHP Notice" generate by script
http://html2fpdf.sourceforge.net/ex3.html

This PHP Notice are removed by :

in fpdf.php line 1841 and 1848 (function _parsegif($file))
replace
if($bgColor != -1)
by
if((isset($bgColor)) && ($bgColor != -1))

in html2fpdf.php ligne 1206 (function printbuffer
($array,$istable=false,$wordwrappedtext=''))
replace
$this->SetTextColor($coul['R'],$coul['G'],$coul
['B']);
by
if(!empty($coul))
$this->SetTextColor($coul['R'],$coul['G'],$coul
['B']);

in html2fpdf.php ligne 1182 and 1262 (function printbuffer
($array,$istable=false,$wordwrappedtext=''))
replace
if($vetor[9] === true) // strike-through the
text
by
if((isset($vector[9])) && ($vetor[9] ===
true)) // strike-through the text

bye.

Jean-Marc MICHEL
jmmichel@fabregue.fr

Discussion

  • Renato A. C.

    Renato A. C. - 2004-12-31

    Logged In: YES
    user_id=1084723

    Thanks for the feedbacks, they are very welcome!

    Since this script is very big, I end up ignoring NOTICE in my
    php.ini and since they aren't much of a problem, I postpone
    (somewhere in the future) fixing them.

     
  • Renato A. C.

    Renato A. C. - 2004-12-31
    • status: open --> closed-wont-fix
     

Log in to post a comment.