changeset 1:0aae3e2e6309

Fix d'un warning dans le cas node_load(node_save());
author Franck Deroche <franck@defr.org>
date Tue, 24 Nov 2009 14:26:41 +0100
parents 9ce879ecbce6
children 13824d66b299
files og_statistics.module
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);