Commit 09cdab14 authored by Nicholas Thompson's avatar Nicholas Thompson
Browse files

Minor fix to the Default Value of the Page Title for Term Edit pages where a...

Minor fix to the Default Value of the Page Title for Term Edit pages where a Page Title isn't set. Causes an E_NOTICE error.
parent 1d394463
......@@ -265,7 +265,7 @@ function page_title_form_taxonomy_form_term_alter(&$form, &$form_state) {
'#type' => 'textfield',
'#title' => t('Page title'),
'#description' => t('Provide a description of this term to appear in the <title> tag which search engines can use in search result listings (optional). It is generally accepted this field should be less than 70 characters.'),
'#default_value' => page_title_load_title($form['tid']['#value'], 'term'),
'#default_value' => isset($form['tid']['#value']) ? page_title_load_title($form['tid']['#value'], 'term') : '',
'#size' => 60,
'#maxlength' => 255,
'#weight' => -20,
......
Supports Markdown
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