1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-25 15:09:53 +00:00

don't check for a photo unless any phone number given

since the identification / matching between contact and sms is the sms_address (which is compared with TEL entries) it makes no sense to check for the photo, unless there is at least one address given (the sms_address can also be a text string, but this would still match only in TEL entries).
This commit is contained in:
Martin Rüegg
2015-02-12 20:08:18 +01:00
parent eeb2f57901
commit a3accd7a77
+1 -1
View File
@@ -145,7 +145,6 @@ class OcSmsApp extends App {
else { else {
$this->pushPhoneNumberToCache($phoneIds, $r["FN"], $configuredCountry); $this->pushPhoneNumberToCache($phoneIds, $r["FN"], $configuredCountry);
} }
}
if (isset ($r["PHOTO"])) { if (isset ($r["PHOTO"])) {
// Remove useless prefix // Remove useless prefix
@@ -154,6 +153,7 @@ class OcSmsApp extends App {
} }
} }
} }
}
private function pushPhoneNumberToCache($rawPhone, $contactName, $country) { private function pushPhoneNumberToCache($rawPhone, $contactName, $country) {