Index: weight.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/weight/weight.module,v
retrieving revision 1.23
diff -r1.23 weight.module
166c166
<   if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) {
---
>   if (isset($form['type']['#value']) && $form['type']['#value'] .'_node_form' == $form_id) {
191c191
<   if ($_POST['op'] == t('Setup Database')) {
---
>   if (isset($_POST['op']) && $_POST['op'] == t('Setup Database')) {
212c212
<   if ($_POST['op'] == t('Remove weights')) {
---
>   if (isset($_POST['op']) && $_POST['op'] == t('Remove weights')) {
230,231c230
< 
<   if ($_POST['op'] == t('Update')) {
---
>   if (isset($_POST['op']) && $_POST['op'] == t('Update')) {
240,241c239,240
<   $output .= drupal_get_form('weight_settings_form');
<   return $output;
---
>   
>   return drupal_get_form('weight_settings_form');;
