Sfoglia il codice sorgente

Actually get the conditional right, lol

Andy Baugh 6 anni fa
parent
commit
d2c241f01e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/Cpanel/iContact/Provider/Slack.pm

+ 1 - 1
lib/Cpanel/iContact/Provider/Slack.pm

@@ -71,7 +71,7 @@ sub send {
     my $dump_hr = {
         'text'        => $subject,
     };
-    $dump_hr->{'attachments'} = [ { "text" => $message } ] if $contact_hr->{'SLACKCOMPACT'};
+    $dump_hr->{'attachments'} = [ { "text" => $message } ] if !$contact_hr->{'SLACKCOMPACT'};
     my $message_json = Cpanel::AdminBin::Serializer::Dump($dump_hr);
 
     # Send it