Bug 12100: (follow-up) fix regression

This patch fixes a regression on bug 5603 introduced by
the previous patch by ensuring that if no preferred transports are
active for a given message, GetMessagingPreferences()
won't try to populate the transports hash with an undef hash
key.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Galen Charlton 2014-04-28 21:32:45 +00:00
parent 9d94396f75
commit 8f287eebc5
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ END_SQL
$return->{'days_in_advance'} = $row->{'days_in_advance'} if defined $row->{'days_in_advance'};
$return->{'wants_digest'} = $row->{'wants_digest'} if defined $row->{'wants_digest'};
$return->{'letter_code'} = $row->{'letter_code'};
next unless defined $row->{'message_transport_type'};
$return->{'transports'}->{ $row->{'message_transport_type'} } = $row->{'letter_code'};
}
return $return;