[Bps-public-commit] r13970 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Jul 10 17:07:18 EDT 2008


Author: sartak
Date: Thu Jul 10 17:07:05 2008
New Revision: 13970

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/Record.pm

Log:
 r64086 at onn:  sartak | 2008-07-10 17:06:23 -0400
 Don't bother displaying unset fields


Modified: Prophet/trunk/lib/Prophet/Record.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Record.pm	(original)
+++ Prophet/trunk/lib/Prophet/Record.pm	Thu Jul 10 17:07:05 2008
@@ -401,6 +401,9 @@
     for my $field (@show_props) {
         my $value = $props->{$field};
 
+        # don't bother displaying unset fields
+        next if !defined($value);
+
         # color if we can (and should)
         my ($color_field, $color_value) = ($field, $value);
         if (!$args{batch}) {



More information about the Bps-public-commit mailing list