Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning line 115 of functions.php #2

Open
jdelia opened this issue Jun 8, 2015 · 0 comments
Open

Warning line 115 of functions.php #2

jdelia opened this issue Jun 8, 2015 · 0 comments

Comments

@jdelia
Copy link

jdelia commented Jun 8, 2015

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('

%s

', antispambot($email), antispambot($email) );

as it should be:

if (genesis_get_custom_field('_agent_email') != '') {
$email = genesis_get_custom_field('_agent_email');
$output.= sprintf('

%s

', antispambot($email), antispambot($email));
}

It is throwing a PHP warning with DEBUG on.

https://wordpress.org/plugins/genesis-agent-profiles/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant