reduce PHP notices

This commit is contained in:
Roland Gruber 2011-10-14 18:36:11 +00:00
parent 331d4cdff2
commit e352098f28
1 changed files with 3 additions and 3 deletions

View File

@ -238,8 +238,6 @@ function MultiCell($w,$h,$txt,$border=0,$align='J',$fill=0)
{
//Get next character
$c = $this->code2utf($cp[$i]);
$charw = $cw[$cp[$i]];
if($c=="\n")
{
//Explicit line break
@ -265,7 +263,9 @@ function MultiCell($w,$h,$txt,$border=0,$align='J',$fill=0)
$ls=$l;
$ns++;
}
$l+=$charw;
if (isset($cw[$cp[$i]])) {
$l += $cw[$cp[$i]];
}
if($l>$wmax)
{