[Rt-commit] rt branch, 4.2/smime-v2, updated. rt-4.0.4-355-g103a3ed
Jason May
jasonmay at bestpractical.com
Tue Jan 10 11:12:08 EST 2012
The branch, 4.2/smime-v2 has been updated
via 103a3ed6c5e2d9eed9141a685e2912782ff80d8b (commit)
from 18924446533432aa3640f58b7fc8b38264bb5d75 (commit)
Summary of changes:
lib/RT/Crypt.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 103a3ed6c5e2d9eed9141a685e2912782ff80d8b
Author: Jason May <jasonmay at bestpractical.com>
Date: Tue Jan 10 11:10:29 2012 -0500
Defend against undefined configurations when checking crypt protocols
This gets each SMIME test to run without errors.
diff --git a/lib/RT/Crypt.pm b/lib/RT/Crypt.pm
index 70f7501..3c2eaca 100644
--- a/lib/RT/Crypt.pm
+++ b/lib/RT/Crypt.pm
@@ -76,7 +76,7 @@ sub Protocols {
sub EnabledProtocols {
my $self = shift;
- return grep RT->Config->Get($_)->{'Enable'}, $self->Protocols;
+ return grep { (RT->Config->Get($_) || {})->{'Enable'} } $self->Protocols;
}
sub UseForOutgoing {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list