Skip to content

Commit 0a8259f

Browse files
author
cap60552
committed
Fixed more missing returns
git-svn-id: http://php-sip2.googlecode.com/svn/trunk@19 ce44ba49-5d48-0410-be41-89220e6c249e
1 parent efe12bc commit 0a8259f

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

sip2.class.php

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
*
4444
* // connect to SIP server
4545
* $result = $mysip->connect();
46-
*
47-
* // selfcheck status mesage goes here...
48-
*
46+
*
47+
* // selfcheck status mesage goes here...
48+
*
4949
*
5050
* // Get Charged Items Raw response
5151
* $in = $mysip->msgPatronInformation('charged');
@@ -86,8 +86,8 @@ class sip2 {
8686
public $debug = false;
8787

8888
/* Private variables for building messages */
89-
private $AO = 'WohlersSIP';
90-
private $AN = 'SIPCHK';
89+
public $AO = 'WohlersSIP';
90+
public $AN = 'SIPCHK';
9191

9292
/* Private variable to hold socket connection */
9393
private $socket;
@@ -429,7 +429,8 @@ function parsePatronStatusResponse($response) {
429429
);
430430

431431
$result['variable'] = $this->_parsevariabledata($response, 37);
432-
}
432+
return $result;
433+
}
433434

434435
function parseCheckoutResponse($response) {
435436
$result['fixed'] =
@@ -442,7 +443,9 @@ function parseCheckoutResponse($response) {
442443
);
443444

444445
$result['variable'] = $this->_parsevariabledata($response, 24);
445-
}
446+
return $result;
447+
448+
}
446449

447450
function parseCheckinResponse($response) {
448451
$result['fixed'] =
@@ -455,7 +458,9 @@ function parseCheckinResponse($response) {
455458
);
456459

457460
$result['variable'] = $this->_parsevariabledata($response, 24);
458-
}
461+
return $result;
462+
463+
}
459464

460465
function parseACSStatusResponse($response) {
461466
$result['fixed'] =

0 commit comments

Comments
 (0)