summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Duedal <hd@onlinecity.dk>2011-03-25 22:53:08 +0100
committerHans Duedal <hd@onlinecity.dk>2011-03-25 22:53:08 +0100
commitad7b65b6f6e649d30961623c0cb965b25e86f8dc (patch)
tree39f948a0d5d2015db0eda32b21ac4c9219c626b7
parentd0cac115585935105b4616a09d2c7b7dff217570 (diff)
downloadphp-smpp-ad7b65b6f6e649d30961623c0cb965b25e86f8dc.zip
php-smpp-ad7b65b6f6e649d30961623c0cb965b25e86f8dc.tar.gz
php-smpp-ad7b65b6f6e649d30961623c0cb965b25e86f8dc.tar.bz2
Fixed a typo in SmsSender, and improved markdown
-rw-r--r--README.markdown7
-rw-r--r--gateway/workers/smssender.class.php4
2 files changed, 4 insertions, 7 deletions
diff --git a/README.markdown b/README.markdown
index 9cd3f89..21fb820 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,9 +1,9 @@
PHP-based SMPP client lib
=============
-This is a simplified SMPP client lib for sending or receiving smses through SMPP v3.4[2].
+This is a simplified SMPP client lib for sending or receiving smses through [SMPP v3.4](http://www.smsforum.net/SMPP_v3_4_Issue1_2.zip).
-The socket implementation from Apache's Thrift[1] is used for the transport layer components.
+The socket implementation from [Apache's Thrift](http://thrift.apache.org/) is used for the transport layer components.
This library is targeted towards PHP 5.3, and as such uses namespaces.
@@ -116,6 +116,3 @@ Then another script injects a SMS into the queue:
$smsrequest = new SmsRequest('H€llo world', array(4512345678), 'SMPP Test', 1337);
msg_send($queue, SmsRequest::TYPE, $smsrequest, true);
-
-[1]: http://thrift.apache.org/
-[2]: http://www.smsforum.net/SMPP_v3_4_Issue1_2.zip \ No newline at end of file
diff --git a/gateway/workers/smssender.class.php b/gateway/workers/smssender.class.php
index 03102d1..ca0638d 100644
--- a/gateway/workers/smssender.class.php
+++ b/gateway/workers/smssender.class.php
@@ -149,8 +149,8 @@ class SmsSender
// Contruct SMPP Address objects
if (!ctype_digit($sms->sender)) {
$sender = new \SMPP\Address($sms->sender,\SMPP\TON_ALPHANUMERIC);
- } else if ($sender < 10000) {
- $sender = new \SMPP\Address($sms->sender,SMPP\TON_NATIONAL,SMPP\NPI_E164);
+ } else if ($sms->sender < 10000) {
+ $sender = new \SMPP\Address($sms->sender,\SMPP\TON_NATIONAL,\SMPP\NPI_E164);
} else {
$sender = new \SMPP\Address($sms->sender,\SMPP\TON_INTERNATIONAL,\SMPP\NPI_E164);
}