Title: Issue with conditional PHP check
Last modified: August 22, 2016

---

# Issue with conditional PHP check

 *  Resolved [Diego de Oliveira](https://wordpress.org/support/users/diegoliv/)
 * (@diegoliv)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/issue-with-conditional-php-check/)
 * Hi, Hannes!
 * I found an issue with a php conditional check at the `class-haet-mail.php` file.
 * At line 312:
 *     ```
       if(isset($options['footerlink']))
       ```
   
 * This conditional check will return `true` if this option is set, no matter if
   the value is **0** or **1**, this was causing the option to not make any effect.
   To fix it, just change that line to this:
 *     ```
       if(isset($options['footerlink']) && $options['footerlink'] == 1 )
       ```
   
 * … and the option will take effect, as desired!
 * Thanks!
 * [https://wordpress.org/plugins/wp-html-mail/](https://wordpress.org/plugins/wp-html-mail/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * (@haet)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/issue-with-conditional-php-check/#post-5787678)
 * I fixed this bug in the previous version.
    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Issue with conditional PHP check’ is closed to new replies.

 * ![](https://ps.w.org/wp-html-mail/assets/icon-256x256.png?rev=1730334)
 * [Email Template Designer - WP HTML Mail](https://wordpress.org/plugins/wp-html-mail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-html-mail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-html-mail/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-html-mail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-html-mail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-html-mail/reviews/)

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/issue-with-conditional-php-check/#post-5787678)
 * Status: resolved