Don't show a bunch of empty fields

This commit is contained in:
Miles Lott 2001-04-28 04:36:35 +00:00
parent bddc2b415b
commit 4ed0543f9e

View File

@ -122,6 +122,8 @@
$t->set_var('display_col',ucfirst($column));
}
$ref = $data = "";
if ($fields[0][$column])
{
$coldata = $fields[0][$column];
// Some fields require special formatting.
if ( ($column == "note" || $column == "label" || $column == "pubkey") && $coldata )
@ -180,6 +182,7 @@
}
$t->parse("cols","view_row",True);
}
}
$cat = CreateObject('phpgwapi.categories');
$catinfo = $cat->return_single($fields[0]['cat_id']);