aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-20 16:08:45 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-20 16:08:45 +0000
commit85ddc49496f801173ebf9bd1ad9532c394921692 (patch)
tree9670fc88a0cc48213cc15022209be16834572b9b /engine
parentb47af8c49e18f7ec5c59f3930e1ba4c93b0810ce (diff)
downloadelgg-85ddc49496f801173ebf9bd1ad9532c394921692.tar.gz
elgg-85ddc49496f801173ebf9bd1ad9532c394921692.tar.bz2
Notification messages can be suppressed programmatically.
git-svn-id: https://code.elgg.org/elgg/trunk@2868 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/notification.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php
index 6e984a435..b4c69f9b5 100644
--- a/engine/lib/notification.php
+++ b/engine/lib/notification.php
@@ -406,8 +406,9 @@
'entity' => $object,
'to_entity' => $user,
'method' => $method),$string);
- if (empty($methodstring)) $methodstring = $string;
- notify_user($user->guid,$object->container_guid,$descr,$methodstring,NULL,array($method));
+ if (empty($methodstring) && $methodstring !== false) $methodstring = $string;
+ if ($methodstring !== false)
+ notify_user($user->guid,$object->container_guid,$descr,$methodstring,NULL,array($method));
}
}
}