Commit 9a063196 authored by jacob.embree's avatar jacob.embree Committed by RenatoG

Issue #2625586 by jacob.embree, zorax, RenatoG: Undefined index: priority dans...

Issue #2625586 by jacob.embree, zorax, RenatoG: Undefined index: priority dans xmlsitemap_process_form_link_options()
parent 3c508676
...@@ -1339,6 +1339,9 @@ function xmlsitemap_process_form_link_options($form, &$form_state) { ...@@ -1339,6 +1339,9 @@ function xmlsitemap_process_form_link_options($form, &$form_state) {
$link = &$form_state['values']['xmlsitemap']; $link = &$form_state['values']['xmlsitemap'];
$fields = array('status' => XMLSITEMAP_STATUS_DEFAULT, 'priority' => XMLSITEMAP_PRIORITY_DEFAULT); $fields = array('status' => XMLSITEMAP_STATUS_DEFAULT, 'priority' => XMLSITEMAP_PRIORITY_DEFAULT);
if (empty($link)) {
return;
}
foreach ($fields as $field => $default) { foreach ($fields as $field => $default) {
if ($link[$field] === 'default') { if ($link[$field] === 'default') {
$link[$field] = isset($link[$field . '_default']) ? $link[$field . '_default'] : $default; $link[$field] = isset($link[$field . '_default']) ? $link[$field . '_default'] : $default;
......
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