Skip to content
Snippets Groups Projects
Commit db88cb6c authored by Richard Buchanan's avatar Richard Buchanan Committed by Richard Buchanan
Browse files

Issue #2923291 by Richard Buchanan: Undefined index: id in uikit_button()

parent d0ae9d5f
Branches 7.x-2.x
Tags 7.x-2.10
No related merge requests found
......@@ -43,7 +43,7 @@ function uikit_button($variables) {
element_set_attributes($element, array('id', 'name', 'value'));
$element['#attributes']['class'][] = 'form-' . $element['#button_type'];
$value = $element['#attributes']['value'];
$id = $element['#attributes']['id'];
$id = isset($element['#attributes']['id']) ? $element['#attributes']['id'] : '';
if (!empty($element['#attributes']['disabled'])) {
$element['#attributes']['class'][] = 'form-button-disabled';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment