Commit cfbfe264 authored by jepso's avatar jepso

Fixes division by zero

parent c5b694c5
......@@ -38,7 +38,9 @@ class Text_Wiki_Render_Latex_Table extends Text_Wiki_Render {
$max_width = 60;
$available_width = $max_width;
$avg_width = $available_width / (float) count($col_widths);
if (count($col_widths) > 0) {
$avg_width = $available_width / (float) count($col_widths);
}
$calc_col_widths = array();
while (count($col_widths) > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment