mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-24 08:16:32 +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:
parent
eeb2f57901
commit
a3accd7a77
@ -145,12 +145,12 @@ class OcSmsApp extends App {
|
||||
else {
|
||||
$this->pushPhoneNumberToCache($phoneIds, $r["FN"], $configuredCountry);
|
||||
}
|
||||
}
|
||||
|
||||
if (isset ($r["PHOTO"])) {
|
||||
// Remove useless prefix
|
||||
$photoURL = preg_replace("#VALUE=uri:#","",$r["PHOTO"]);
|
||||
self::$contactPhotos[$r["FN"]] = $photoURL;
|
||||
|
||||
if (isset ($r["PHOTO"])) {
|
||||
// Remove useless prefix
|
||||
$photoURL = preg_replace("#VALUE=uri:#","",$r["PHOTO"]);
|
||||
self::$contactPhotos[$r["FN"]] = $photoURL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user