Commit f638bc1a authored by saikatewu's avatar saikatewu Committed by RenatoG
Browse files

Issue #2921449 by saikatewu, NitinSP, RenatoG: Warning: array_unshift()...

Issue #2921449 by saikatewu, NitinSP, RenatoG: Warning: array_unshift() expects parameter 1 to be array, null given in xmlsitemap_add_form_link_options() (line 1220
parent cd0bf3dd
......@@ -1251,7 +1251,7 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
];
array_unshift($form['actions']['submit']['#submit'], 'xmlsitemap_process_form_link_options');
if (isset($form['actions']['publish'])) {
if (!empty($form['actions']['publish']['#submit'])) {
array_unshift($form['actions']['publish']['#submit'], 'xmlsitemap_process_form_link_options');
}
}
......
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