diff --git a/theme/list_lib.js b/theme/list_lib.js
index 6e5dc8730..9a79b2321 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -816,6 +816,9 @@ function get_weight_HTML(weight)
*/
function get_weights_HTML(dive)
{
+ if (!dive.Weights.length)
+ return "";
+
var result = "";
result += '
' + translate.Weight + ' | ' + translate.Type + ' |
';
for (var i in dive.Weights) {
@@ -850,6 +853,9 @@ function get_cylinder_HTML(cylinder)
*/
function get_cylinders_HTML(dive)
{
+ if (!dive.Cylinders.length)
+ return "";
+
var result = "";
result += '' + translate.Dive_equipments + '
' + translate.Type + ' | ' + translate.Size + ' | ' + translate.Work_Pressure + ' | ' + translate.Start_Pressure + ' | ' + translate.End_Pressure + ' | O2 |
';
for (var i in dive.Cylinders) {