]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed: wrong if statement in messages_send
authorJerome Bakker <jeabakker@coldtrick.com>
Wed, 3 Oct 2012 12:56:18 +0000 (14:56 +0200)
committerJerome Bakker <jeabakker@coldtrick.com>
Wed, 3 Oct 2012 12:56:18 +0000 (14:56 +0200)
mod/messages/start.php

index 58636eea876994e12be46709e18878d63aadba98..324abd59b449c8185d70167db57d5c1688a97a91 100644 (file)
@@ -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();