1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Fix invalid code missed on review

This commit is contained in:
Loïc Blot 2019-11-09 08:27:40 +01:00 committed by GitHub
parent c9f1b4099f
commit 012ba8385b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,16 +136,14 @@ class SmsMapper extends Mapper {
if(isset($phoneList[$fpn])) {
return $phoneList[$fpn];
}
else {
$fpn = PhoneNumberFormatter::format($country, $fpn);
if (isset($phoneList[$fpn])) {
return $phoneList[$fpn];
}
}
else {
return array();
}
}
public function getAllMessagesForPhoneNumber ($userId, $phoneNumber, $country, $minDate = 0) {