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):