diff options
author | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-06-16 02:28:13 +0100 |
---|---|---|
committer | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-06-16 02:28:13 +0100 |
commit | 6f388a8b500d069e39298cf705d59bad64eba6c5 (patch) | |
tree | 68390d68ebf143acb0b189430b107e1276a994fe /plugins/Msn/extlib | |
parent | 7b998f4b2a21b86ae6a3a22e6e7891e2d98d3902 (diff) |
Use correct array index access for switchBoardSessions in sendMessageToSBSession
Diffstat (limited to 'plugins/Msn/extlib')
-rw-r--r-- | plugins/Msn/extlib/phpmsnclass/msn.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Msn/extlib/phpmsnclass/msn.class.php b/plugins/Msn/extlib/phpmsnclass/msn.class.php index c37b945e7..e38c3cc11 100644 --- a/plugins/Msn/extlib/phpmsnclass/msn.class.php +++ b/plugins/Msn/extlib/phpmsnclass/msn.class.php @@ -1392,7 +1392,6 @@ class MSN { $this->switchBoardSessionLookup[$to] = $socket;
// Store the socket in the sessions array
- $intsocket = (int) $socket;
$this->switchBoardSessions[$to] = array(
'to' => $to,
'socket' => $socket,
@@ -1403,6 +1402,7 @@ class MSN { );
// Change the index of the session to the socket
+ $intsocket = (int) $socket;
$this->switchBoardSessions[$intsocket] = $this->switchBoardSessions[$to];
unset($this->switchBoardSessions[$to]);
@@ -1457,13 +1457,13 @@ class MSN { if (self::socketcheck($socket)) {
return false;
}
-
- if (!$this->switchBoardSessions[$to]['joined']) {
+
+ $intsocket = (int) $socket;
+ if (!$this->switchBoardSessions[$intsocket]['joined']) {
// If our participant has not joined the session yet we can't message them!
return false;
}
- $intsocket = (int) $socket;
$id = &$this->switchBoardSessions[$intsocket]['id'];
$aMessage = $this->getMessage($Message);
|