Commit 3164123d authored by Ben Davis's avatar Ben Davis

Issue #1589932: Weight not saved if weight = 0.

parent 63e2d1b5
......@@ -339,7 +339,7 @@ function weight_node_load($nodes, $type) {
* Implements hook_node_insert().
*/
function weight_node_insert($node) {
if (!empty($node->weight_weight)) {
if ($node->weight_weight !== NULL) {
_weight_set_weight($node);
}
}
......@@ -348,7 +348,7 @@ function weight_node_insert($node) {
* Implements hook_node_update().
*/
function weight_node_update($node) {
if (!empty($node->weight_weight)) {
if ($node->weight_weight !== NULL) {
_weight_set_weight($node);
}
}
......
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