[Rt-commit] r8973 - rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt

ruz at bestpractical.com ruz at bestpractical.com
Sat Sep 8 21:33:02 EDT 2007


Author: ruz
Date: Sat Sep  8 21:32:59 2007
New Revision: 8973

Modified:
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm

Log:
* delete the hash record if value is an empty list

Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm	Sat Sep  8 21:32:59 2007
@@ -1573,7 +1573,7 @@
 
         push @{ $res{'info'} }, $key;
     }
-
+    delete $res{'info'} unless @{ $res{'info'} };
     return %res;
 }
 


More information about the Rt-commit mailing list