Skip to content
Browse files

NetworkClient bugfix

  • Loading branch information...
1 parent 4bc93a3 commit 89c8636932281e9c66333f07c649f19a258422d0 @kakserpom committed Mar 19, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/NetworkClient.php
  2. +1 −1 lib/XMLStream.php
View
4 lib/NetworkClient.php
@@ -219,10 +219,10 @@ public function requestByKey($key, $data, $onResponse = null) {
return;
}
if ($onResponse !== NULL) {
- $conn->onResponse->push($onResponse);
+ $conn->onResponse($onResponse);
$conn->setFree(false);
} elseif ($conn->noSAF) {
- $conn->onResponse->push(null);
+ $conn->onResponse(null);
}
$conn->write($data);
});
View
2 lib/XMLStream.php
@@ -314,7 +314,7 @@ public function hasSub($name, $ns = null) {
* @param string $ns
*/
public function sub($name, $attrs = null, $ns = null) {
- #TODO attrs is ignored
+ //@TODO: attrs is ignored
foreach($this->subs as $sub) {
if($sub->name == $name and ($ns == null or $sub->ns == $ns)) {
return $sub;

0 comments on commit 89c8636

Please sign in to comment.
Something went wrong with that request. Please try again.