diff --git a/manual/new/lib/Text/Wiki/Render/Latex/Table.php b/manual/new/lib/Text/Wiki/Render/Latex/Table.php
index 1d6ed2f50..2f182627e 100644
--- a/manual/new/lib/Text/Wiki/Render/Latex/Table.php
+++ b/manual/new/lib/Text/Wiki/Render/Latex/Table.php
@@ -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) {