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:
parent
9d94396f75
commit
8f287eebc5
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue