Commit 79399a1b authored by bgm's avatar bgm

domain filter: check for the domain_valid_domain() before using it.

parent 5423d36f
......@@ -1181,7 +1181,7 @@ function boost_admin_boost_performance_page_validate($form, &$form_state) {
$whitelist_values = explode("\n", $form_state['values']['boost_domain_whitelist']);
$whitelist_values = array_map('trim', $whitelist_values);
$whitelist = array_combine($whitelist_values, $whitelist_values);
if ($form_state['values']['boost_domain_whitelist']) {
if ($form_state['values']['boost_domain_whitelist'] && function_exists('domain_valid_domain')) {
foreach ($whitelist as $key => $value) {
$error_msg = domain_valid_domain($value);
if (!empty($error_msg)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment