Index: weight.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/weight/weight.module,v retrieving revision 1.23.2.8 diff -u -p -r1.23.2.8 weight.module --- weight.module 25 Apr 2009 15:11:36 -0000 1.23.2.8 +++ weight.module 21 Jun 2009 20:31:46 -0000 @@ -238,13 +238,14 @@ function _weight_change($nid, $weight) { * unweighted sticky nodes will have a value of 100. */ function _weight_encode(&$node) { - if ($node->sticky) { + if ($node->sticky == 1) { $node->sticky = 100 - $node->node_weight; } // Unweighted non-sticky nodes will have a value of -100. - else { + elseif ($node->sticky == 0) { $node->sticky = -($node->node_weight + 100); } + //If the sticky value is neither 1 or 0 it has already been encoded. Do nothing. } /**