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:
Roland Häder 2018-07-22 22:01:14 +02:00 committed by Hypolite Petovan
parent c17adaf333
commit 7876d6547b
3 changed files with 29 additions and 24 deletions

View file

@ -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;
}
}