Fallbacks for blank from address do not work
John Morahan - August 24, 2009 - 10:04
| Project: | SMTP Authentication Support |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
<?php
if ($from = variable_get('smtp_from', '') == '') {
?>the == has higher precedence so you are really just assigning a boolean value to $from
| Attachment | Size |
|---|---|
| smtp-from-blank-fallback.patch | 979 bytes |

#1
Patch rolled fine for me.