Last active
November 12, 2015 15:11
-
-
Save pcave/104c11e4336b4fd3387c to your computer and use it in GitHub Desktop.
PHP Error Detection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* There is a coding mistake in the code below. See if you can spot it and explain why the mistake | |
* may or may not cause an issue when executed. | |
*/ | |
if (!empty($form['#node']->custom_fail_message && $node->webform['redirect_url'] != '<confirmation>')) { | |
drupal_get_messages('status'); | |
drupal_set_message(check_markup($form['#node']->custom_fail_message, 'full_html', '', TRUE)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment