diff options
author | jnew-gh <github@hazelden.ca> | 2021-04-14 21:34:15 +0300 |
---|---|---|
committer | jnew-gh <github@hazelden.ca> | 2021-04-14 21:34:15 +0300 |
commit | 850cfc98fd75c4463b6d148387a6ab36607c0e37 (patch) | |
tree | a5a34866c51a810d0c9bf121b83386186815e1fb /dmarcts-report-viewer.php | |
parent | d5d15e2e5647493d958d29fd1a974974bdb4f0be (diff) |
Use $dmarc_select[] array names when building DMARC Results dropdown
The DMARC Results dropdown should return the dmarc_select[] array names (like DMARC_FAIL and DMARC_PASS) instead of numbers, so $demarc_result can be evaluated. This is complimentary to commit ccfb119.
Diffstat (limited to 'dmarcts-report-viewer.php')
-rw-r--r-- | dmarcts-report-viewer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dmarcts-report-viewer.php b/dmarcts-report-viewer.php index f65ced6..44cae7e 100644 --- a/dmarcts-report-viewer.php +++ b/dmarcts-report-viewer.php @@ -74,7 +74,7 @@ function html ($default_hostlookup = 1, $default_dmarc_result = undef, $default_ foreach($dmarc_result as $key => $value) { $html[] = sprintf("<option style='color: " . $value['color'] . "' %s value=\"%d\">%s</option>", $default_dmarc_result == $key ? "selected=\"selected\"" : "", - $value['status_sort_key'], + $key, $value['text'], ); } |