From: Luke Fitzgerald Date: Wed, 16 Jun 2010 01:25:09 +0000 (+0100) Subject: Reduced if statements used in sendOtherNetworkMessage X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b998f4b2a21b86ae6a3a22e6e7891e2d98d3902;p=quix0rs-gnu-social.git Reduced if statements used in sendOtherNetworkMessage --- diff --git a/plugins/Msn/extlib/phpmsnclass/msn.class.php b/plugins/Msn/extlib/phpmsnclass/msn.class.php index 8049d4ca49..c37b945e77 100644 --- a/plugins/Msn/extlib/phpmsnclass/msn.class.php +++ b/plugins/Msn/extlib/phpmsnclass/msn.class.php @@ -1497,10 +1497,8 @@ class MSN { private function sendOtherNetworkMessage($to, $message, $network) { $message = $this->getMessage($message, $network); $len = strlen($message); - if ($this->ns_writeln("UUM $this->id $to $network 1 $len") === false) { - return false; - } - if ($this->ns_writedata($Message)) { + if ($this->ns_writeln("UUM $this->id $to $network 1 $len") === false || + $this->ns_writedata($Message) === false) { return false; } $this->debug_message("*** Sent to $to (network: $network):\n$Message");