Commit 0aee674f authored by young hahn's avatar young hahn
Browse files

Fix for E_ALL notice.

parent 103ea95f
......@@ -150,10 +150,12 @@ function _strongarm_lockdown(&$form, $pattern = '', $position = STRONGARM_PATTER
if (isset($form[$elem]['#default_value']) && $var_conf[$key] == $form[$elem]['#default_value']) {
$form[$elem]['#disabled'] = TRUE;
}
if (!isset($form[$elem]['#attributes'])) {
$form[$elem]['#attributes'] = array();
if (!isset($form[$elem]['#attributes']['class'])) {
$form[$elem]['#attributes']['class'] = "strongarm";
}
else {
$form[$elem]['#attributes']['class'] .= " strongarm";
}
$form[$elem]['#attributes']['class'] .= " strongarm";
$altered = TRUE;
}
......
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