Fix order of arguments in substr call to phone number #137

This commit is contained in:
Kendrick Chan 2018-06-12 02:30:18 +08:00
parent 24687364f2
commit 1101e61f5f

View file

@ -346,7 +346,7 @@ class APIController extends Controller
->setConfirmed($this->session->isConfirmed());
// update mobile phone of customer
$cust->setPhoneMobile(substr(2, $this->session->getPhoneNumber()));
$cust->setPhoneMobile(substr($this->session->getPhoneNumber(), 2));
$em->flush();