Title: PHP Warning in functions.php error
Last modified: August 30, 2016

---

# PHP Warning in functions.php error

 *  Anonymous User 7698158
 * (@anonymized-7698158)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-warning-in-functionsphp-error/)
 * I noticed line 115 of plugin’s functions.php email code needs to be wrapped in
   brackets since it is on two lines:
    as it is now:
 * if (genesis_get_custom_field(‘_agent_email’) != ”)
    $email = genesis_get_custom_field(‘
   _agent_email’); $output .= sprintf(‘<p>[%s](https://wordpress.org/support/topic/php-warning-in-functionsphp-error/%s?output_format=md)
   </p>’, antispambot($email), antispambot($email) );
 * as it should be:
 * if (genesis_get_custom_field(‘_agent_email’) != ”) {
    $email = genesis_get_custom_field(‘
   _agent_email’); $output.= sprintf(‘<p>[%s](https://wordpress.org/support/topic/php-warning-in-functionsphp-error/%s?output_format=md)
   </p>’, antispambot($email), antispambot($email)); }
 * It is throwing a PHP warning with DEBUG on.
 * [https://wordpress.org/plugins/genesis-agent-profiles/](https://wordpress.org/plugins/genesis-agent-profiles/)

The topic ‘PHP Warning in functions.php error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/genesis-agent-profiles_eaeded.svg)
 * [Genesis Agent Profiles](https://wordpress.org/plugins/genesis-agent-profiles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-agent-profiles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-agent-profiles/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-agent-profiles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-agent-profiles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-agent-profiles/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: Anonymous User 7698158
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/php-warning-in-functionsphp-error/)
 * Status: not resolved