mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:10:11 +00:00
Fixed E_NOTICEs when uploading profile picture (#5456)
* Fixed E_NOTICEs when uploading profile picture. * Fixed E_NOTICEs when $_POST doesn't contain these fields.
This commit is contained in:
parent
c17adaf333
commit
7876d6547b
3 changed files with 29 additions and 24 deletions
|
@ -216,7 +216,7 @@ class Contact extends BaseObject
|
|||
$update = false;
|
||||
|
||||
foreach ($fields as $field => $content) {
|
||||
if ($self[$field] != $content) {
|
||||
if (isset($self[$field]) && $self[$field] != $content) {
|
||||
$update = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue