Implement code review from nupplaphil

This commit is contained in:
Matthew Exon 2020-01-11 16:00:02 +01:00
parent dee6a63841
commit 5d0a3be4f6
3 changed files with 5 additions and 5 deletions

View file

@ -216,7 +216,7 @@ class Mail
if (count($images)) {
foreach ($images as $image) {
$image_rid = Photo::ridFromURI($image);
if ($image_rid) {
if (!empty($image_rid)) {
Photo::update(['allow-cid' => '<' . $recipient . '>'], ['resource-id' => $image_rid, 'album' => 'Wall Photos', 'uid' => local_user()]);
}
}