我有我的网站上这样的错误:警告:被零除在PHP上线162
ERR(3):警告:司在 零的public_html /应用/代码/社区/ VES/PdfProProcessor /Pdf/include/table_frame_reflower.cls.php 对在该行我有下面的代码行162
:
$increment = 0;
// Case 1:
if ($absolute_used == 0 && $percent_used == 0) {
$increment = $width - $min_width;
foreach (array_keys($columns) as $i) {
$cellmap->set_column_width($i, $columns[$i]["min-width"] + $increment * ($columns[$i]["max-width"]/$max_width));
}
return;
}
我怎么能解决THI错误?
$ max_width的值是多少?打印并修复它 –
我认为你在162线除以0 – Asleepace