From ab418e8887285c873cae8013761258968c0c3908 Mon Sep 17 00:00:00 2001 From: Mancy Date: Sun, 2 Mar 2014 07:55:34 +0300 Subject: [PATCH] better matching for multipart messages I suggest subtract 2 chars from end of the UDH column I was having problem getting the correct multipart message but it has been solved by replacing 8 with -2 or even -1 --- application/controllers/daemon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/daemon.php b/application/controllers/daemon.php index ff328bc9f..e4f38dbc4 100644 --- a/application/controllers/daemon.php +++ b/application/controllers/daemon.php @@ -91,7 +91,7 @@ function message_routine() if($tmp_check->row('UDH')!='') { - $multipart = array('option' => 'all', 'udh' => substr($tmp_check->row('UDH'),0,8)); + $multipart = array('option' => 'all', 'udh' => substr($tmp_check->row('UDH'),0,-2)); $multipart['phone_number'] = $tmp_check->row('SenderNumber'); $multipart['type'] = 'inbox'; foreach($this->Message_model->get_multipart($multipart)->result() as $part):