summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Duedal <hd@onlinecity.dk>2011-03-26 00:13:51 +0100
committerHans Duedal <hd@onlinecity.dk>2011-03-26 00:13:51 +0100
commit9197b6df55f7fc49eb28373f9e762c58897f15e8 (patch)
tree82978bafc7de5a6f1439e441888ca0c7fba7ae0d
parent0b819b907d7d969129a9bc4ed003940a87f748cb (diff)
downloadphp-smpp-9197b6df55f7fc49eb28373f9e762c58897f15e8.zip
php-smpp-9197b6df55f7fc49eb28373f9e762c58897f15e8.tar.gz
php-smpp-9197b6df55f7fc49eb28373f9e762c58897f15e8.tar.bz2
Fixed bug with payload tag
-rw-r--r--gateway/protocol/smppclient.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/protocol/smppclient.class.php b/gateway/protocol/smppclient.class.php
index 38a4479..6c4de5b 100644
--- a/gateway/protocol/smppclient.class.php
+++ b/gateway/protocol/smppclient.class.php
@@ -228,7 +228,7 @@ class SmppClient
if ($doCsms) {
if (self::$sms_use_msg_payload_for_csms) {
$payload = new \SMPP\Tag(\SMPP\Tag::MESSAGE_PAYLOAD, $message, $msg_length);
- return $this->submit_sm($from, $to, null, (empty($tags) ? $payload : array_merge($tags,$payload)), $dataCoding);
+ return $this->submit_sm($from, $to, null, (empty($tags) ? array($payload) : array_merge($tags,$payload)), $dataCoding);
} else {
$sar_msg_ref_num = new \SMPP\Tag(\SMPP\Tag::SAR_MSG_REF_NUM, $csmsReference, 2, 'n');
$sar_total_segments = new \SMPP\Tag(\SMPP\Tag::SAR_TOTAL_SEGMENTS, count($parts), 1, 'c');