Commit 98359098 authored by davisben's avatar davisben

Issue #2617708 by davisben: Unsupported operand types

parent ba15797a
......@@ -240,11 +240,13 @@ function weight_form_node_type_form_alter(&$form, &$form_state) {
$range = $form_state['values']['weight_range'];
}
else {
$settings = _weight_get_settings($form['#node_type']->type);
if (isset($settings['range'])) {
$range = $settings['range'];
if ($form['#node_type']->type) {
if (isset($settings['range'])) {
$range = $settings['range'];
}
}
else {
if (!isset($range)) {
$range = 20;
}
}
......
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