diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-26 11:57:06 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-26 11:57:06 +0000 |
commit | 3f4850c5e55b221492b02475bd9d182e8137dae3 (patch) | |
tree | a22d372b96b5830727892d95594b649fa60a20e0 | |
parent | efcb56c626f77f5eba68441fe9008531e6842da0 (diff) | |
download | elgg-3f4850c5e55b221492b02475bd9d182e8137dae3.tar.gz elgg-3f4850c5e55b221492b02475bd9d182e8137dae3.tar.bz2 |
Fixed duplicate notifications.
git-svn-id: https://code.elgg.org/elgg/trunk@2961 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/groups/start.php | 7 |
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);
+ }
//}
}
}
|