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:
committed by
Hypolite Petovan
parent
c17adaf333
commit
7876d6547b
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user