From: Jerome Bakker Date: Wed, 3 Oct 2012 12:56:18 +0000 (+0200) Subject: fixed: wrong if statement in messages_send X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ba045f003a8c50aaa42b139b0ed694e230348486;p=lorea%2Felgg.git fixed: wrong if statement in messages_send --- diff --git a/mod/messages/start.php b/mod/messages/start.php index 58636eea8..324abd59b 100644 --- a/mod/messages/start.php +++ b/mod/messages/start.php @@ -288,7 +288,7 @@ function messages_send($subject, $body, $send_to, $from = 0, $reply = 0, $notify } $message_contents = strip_tags($body); - if ($send_to != elgg_get_logged_in_user_entity() && $notify) { + if (($send_to != elgg_get_logged_in_user_guid()) && $notify) { $to_user = get_user($send_to); $from_user = elgg_get_logged_in_user_entity();