Skip to content

Commit

Permalink
Fix undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
smfreegard committed Mar 30, 2016
1 parent 6bc21f7 commit e25c4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/rspamd.js
Expand Up @@ -258,7 +258,7 @@ exports.add_headers = function (connection, data) {
prettySymbols.join(' '));
}

if (cfg.header.score) {
if (cfg.header && cfg.header.score) {
connection.transaction.remove_header(cfg.header.score);
connection.transaction.add_header(cfg.header.score, '' + data.score);
}
Expand Down

0 comments on commit e25c4b7

Please sign in to comment.