From b48b0eaaa748f14f8374065d97c3f0e7f2ccf1b7 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Tue, 9 Oct 2018 13:36:58 -0400 Subject: [PATCH] RT# 38217 Fix syntax warning from typo --- FS/FS/cust_main_Mixin.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index ccd1b84c9..296a9e469 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -465,8 +465,7 @@ sub email_search_result { next; # unlinked object; nothing else we can do } - my %to = {}; - if ($to) { $to{'to'} = $to; } + my %to = ( to => $to ) if $to; if ( $msg_template ) { # Now supports other context objects. -- 2.11.0