PHP Warning in functions.php 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</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</p>’, antispambot($email), antispambot($email));
}It is throwing a PHP warning with DEBUG on.
https://www.ads-software.com/plugins/genesis-agent-profiles/
- The topic ‘PHP Warning in functions.php error’ is closed to new replies.