summaryrefslogtreecommitdiff
path: root/extlib
diff options
context:
space:
mode:
Diffstat (limited to 'extlib')
-rw-r--r--extlib/XMPPHP/XMLStream.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/extlib/XMPPHP/XMLStream.php b/extlib/XMPPHP/XMLStream.php
index 62aa4de89..119016768 100644
--- a/extlib/XMPPHP/XMLStream.php
+++ b/extlib/XMPPHP/XMLStream.php
@@ -619,9 +619,9 @@ class XMPPHP_XMLStream {
public function readyToProcess() {
$read = array($this->socket);
- $write = null;
- $except = null;
+ $write = array();
+ $except = array();
$updated = @stream_select($read, $write, $except, 0);
- return $updated !== false;
+ return (($updated !== false) && ($updated > 0));
}
}