Skip to content
This repository
Browse code

NetworkClient bugfix

  • Loading branch information...
commit 89c8636932281e9c66333f07c649f19a258422d0 1 parent 4bc93a3
Vasily Zorin authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/NetworkClient.php
  2. +1 1  lib/XMLStream.php
4 lib/NetworkClient.php
@@ -219,10 +219,10 @@ public function requestByKey($key, $data, $onResponse = null) {
219 219 return;
220 220 }
221 221 if ($onResponse !== NULL) {
222   - $conn->onResponse->push($onResponse);
  222 + $conn->onResponse($onResponse);
223 223 $conn->setFree(false);
224 224 } elseif ($conn->noSAF) {
225   - $conn->onResponse->push(null);
  225 + $conn->onResponse(null);
226 226 }
227 227 $conn->write($data);
228 228 });
2  lib/XMLStream.php
@@ -314,7 +314,7 @@ public function hasSub($name, $ns = null) {
314 314 * @param string $ns
315 315 */
316 316 public function sub($name, $attrs = null, $ns = null) {
317   - #TODO attrs is ignored
  317 + //@TODO: attrs is ignored
318 318 foreach($this->subs as $sub) {
319 319 if($sub->name == $name and ($ns == null or $sub->ns == $ns)) {
320 320 return $sub;

0 comments on commit 89c8636

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