Skip to content

Commit

Permalink
Fixed 2 undefined variable messages.
Browse files Browse the repository at this point in the history
Corrected MisMatch in msgRenew parameter variable name.
  • Loading branch information
cap60552 committed Oct 8, 2010
1 parent bfe128e commit 3457b51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sip2.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,15 @@ function msgHold($mode, $expDate = '', $holdtype = '', $item = '', $title = '',

}

function msgRenew($item = '', $title = '', $nbDueDate = '', $itmProp = '', $fee= 'N', $noBlock = 'N', $thirdParty = 'N')
function msgRenew($item = '', $title = '', $nbDateDue = '', $itmProp = '', $fee= 'N', $noBlock = 'N', $thirdParty = 'N')
{
/* renew a single item (29) - untested */
$this->_newMessage('29');
$this->_addFixedOption($thirdParty, 1);
$this->_addFixedOption($noBlock, 1);
$this->_addFixedOption($this->_datestamp(), 18);
if ($nbDateDue != '') {
/* override defualt date due */
/* override default date due */
$this->_addFixedOption($this->_datestamp($nbDateDue), 18);
} else {
/* send a blank date due to allow ACS to use default date due computed for item */
Expand Down Expand Up @@ -666,7 +666,7 @@ function get_message ($message)
/* sends the current message, and gets the response */
$result = '';
$terminator = '';

$nr = '';

$this->_debugmsg('SIP2: Sending SIP2 request...');
socket_write($this->socket, $message, strlen($message));
Expand Down

0 comments on commit 3457b51

Please sign in to comment.