Don't show the label when metadata fields are empty.

        Patch by fu. 

diffs (12 lines):

diff -r a5d459a0e358 -r 5f49d40530fd cgi-bin/LJ/Entry.pm
--- a/cgi-bin/LJ/Entry.pm       Fri Jul 02 14:43:08 2010 +0800
+++ b/cgi-bin/LJ/Entry.pm       Fri Jul 02 15:38:52 2010 +0800
@@ -2275,6 +2275,8 @@ sub currents_table {
 
     $ret .= "<table class='currents' border=0>\n";
     foreach ( sort keys %current ) {
+        next unless $current{$_};
+
         my $curkey = "talk.curname_" . $_;
         my $curname = LJ::Lang::ml( $curkey );
         $curname = "<b>Current $_:</b>" unless $curname;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to