From 85ddc49496f801173ebf9bd1ad9532c394921692 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 20 Feb 2009 16:08:45 +0000 Subject: Notification messages can be suppressed programmatically. git-svn-id: https://code.elgg.org/elgg/trunk@2868 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engine') 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)); } } } -- cgit v1.2.3