# HG changeset patch # User Franck Deroche # Date 1259069201 -3600 # Node ID 0aae3e2e6309a580b76883428987fec7256e8616 # Parent 9ce879ecbce6ddefe55516d50d13bc0375725ee8 Fix d'un warning dans le cas node_load(node_save()); diff -r 9ce879ecbce6 -r 0aae3e2e6309 og_statistics.module --- a/og_statistics.module Tue Nov 24 14:25:13 2009 +0100 +++ b/og_statistics.module Tue Nov 24 14:26:41 2009 +0100 @@ -81,7 +81,7 @@ case 'update': // Update statistics. if (og_is_group_post_type($node->type)) { - if (isset($node->og_groups)) { + if (isset($node->og_groups) && isset($node->og_initial_groups)) { $updated_gid = array_intersect($node->og_groups, $node->og_initial_groups); $added_gid = array_diff($node->og_groups, $node->og_initial_groups); $removed_gid = array_diff($node->og_initial_groups, $node->og_groups);