[freeside-commits] freeside/FS/FS Record.pm,1.165,1.166

Ivan,,, ivan at wavetail.420.am
Sat Aug 2 17:27:52 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv15189

Modified Files:
	Record.pm 
Log Message:
attempt to eliminate 'Can't call method "exists" on an undefined value at /usr/local/share/perl/5.8.8/FS/Record.pm line 812.' error on upgrade

Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- Record.pm	3 Aug 2008 00:26:41 -0000	1.165
+++ Record.pm	3 Aug 2008 00:27:50 -0000	1.166
@@ -1306,7 +1306,7 @@
 
   # If we're encrypting then don't ever store the payinfo or CVV2 in the history....
   # You can see if it changed by the paymask...
-  if ($conf->exists('encryption') ) {
+  if ($conf && $conf->exists('encryption') ) {
     @fields = grep  $_ ne 'payinfo' && $_ ne 'cvv2', @fields;
   }
   my @values = map { _quote( $self->getfield($_), $self->table, $_) } @fields;



More information about the freeside-commits mailing list