--- flag_friend.module	2010-05-05 22:30:10.000000000 +0400
+++ flag_friend.module	2011-04-09 23:13:35.783753269 +0400
@@ -488,7 +488,7 @@
   // if the user can receive notifications
   if (user_access('receive friend email notification', $recipient)) {
     // and they've expressed they want them
-    if ((isset($recipient->friend_notification) && $recipient->friend_notification !== -1) || !isset($recipient->friend_notification)) {
+    if ((isset($recipient->friend_notification) && $recipient->friend_notification != -1) || !isset($recipient->friend_notification)) {
       $email = theme('flag_friend_message_email', $status, $flag, $recipient, $sender);
       if (isset($email['body'])) {
         if (function_exists('messaging_message_send_user')) {
