[Jifty-commit] r2011 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Oct 10 01:09:01 EDT 2006


Author: jesse
Date: Tue Oct 10 01:09:00 2006
New Revision: 2011

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

Log:
 r28337 at pinglin:  jesse | 2006-10-10 01:08:19 -0400
  * Tightening up a warning
 


Modified: jifty/trunk/lib/Jifty/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Record.pm	Tue Oct 10 01:09:00 2006
@@ -78,7 +78,7 @@
         }
         }
         # remove blank values. We'd rather have nulls
-        if ( exists $attribs{$key} and ( not ref( $attr) and $attr eq '' )) {
+        if ( exists $attribs{$key} and (! defined $attr || ( not ref( $attr) and $attr eq '' ))) {
             delete $attribs{$key};
         }
     }


More information about the Jifty-commit mailing list