# HG changeset patch # User Franck Deroche # Date 1259069414 -3600 # Node ID 13824d66b299c866a339e2243d4eb19b6eb5fa6e # Parent 48f07e7acaca03f16b05a999baa8d510266fd199# Parent 0aae3e2e6309a580b76883428987fec7256e8616 Application du patch sur la 1.0-rc2 diff -r 48f07e7acaca -r 13824d66b299 og_statistics.module --- a/og_statistics.module Tue Nov 24 14:27:37 2009 +0100 +++ b/og_statistics.module Tue Nov 24 14:30:14 2009 +0100 @@ -98,7 +98,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);