Skip to content

Commit

Permalink
Merge pull request #29429 from owncloud/stable10-e04de08dd71f55a572e7…
Browse files Browse the repository at this point in the history
…17874ee7582612702415

[stable10] only trigger changeUser if account object really changed
  • Loading branch information
DeepDiver1975 authored Nov 3, 2017
2 parents 2c86ed9 + efaa6bc commit ea20f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ private function removeProtocolFromUrl($url) {
}

public function triggerChange($feature, $value = null) {
if ($this->emitter) {
if ($this->emitter && in_array($feature, $this->account->getUpdatedFields())) {
$this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]);
}
}
Expand Down

0 comments on commit ea20f4f

Please sign in to comment.