]> git.mxchange.org Git - friendica.git/commitdiff
Avoid some more warning
authorMichael <heluecht@pirati.ca>
Tue, 9 Apr 2019 11:44:35 +0000 (11:44 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 9 Apr 2019 11:44:35 +0000 (11:44 +0000)
src/Model/Contact.php

index 94d42945cd0d3e4e36e21bb7c5741f13ef419bf7..a866df91c5903b54b734ab03b64ab1374925df76 100644 (file)
@@ -1393,7 +1393,9 @@ class Contact extends BaseObject
                        }
                }
 
-               self::updateAvatar($data["photo"], $uid, $contact_id);
+               if (!empty($data['photo'])) {
+                       self::updateAvatar($data['photo'], $uid, $contact_id);
+               }
 
                $fields = ['url', 'nurl', 'addr', 'alias', 'name', 'nick', 'keywords', 'location', 'about', 'avatar-date', 'pubkey'];
                $contact = DBA::selectFirst('contact', $fields, ['id' => $contact_id]);