aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 22c8cf0eb..094deb786 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -82,11 +82,18 @@
*
*/
function group_object_notifications($event, $object_type, $object) {
+
+ static $flag;
+ if (!isset($flag)) $flag = 0;
+
if (is_callable('object_notifications'))
if ($object instanceof ElggObject) {
if ($object->getSubtype() == 'groupforumtopic') {
//if ($object->countAnnotations('group_topic_post') > 0) {
+ if ($flag == 0) {
+ $flag = 1;
object_notifications($event, $object_type, $object);
+ }
//}
}
}