Fix for autotaxweightmod

<?php
// $Id$

function autotaxweight_taxonomy($op, $type, $array = NULL){
  if (($op == 'insert' || $op == 'update') && $type == 'term') {
        if ($array[parent][0] == 0) {
      $array[weight] = 1;
        }
  }
}

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.