diff --git a/src/userstatus.php b/src/userstatus.php index 2e1b1bf2a..97ce8f0c1 100644 --- a/src/userstatus.php +++ b/src/userstatus.php @@ -908,12 +908,12 @@ function save_user($cj, $old_user = null) { $this->jval = $cj; $this->diffs = []; $this->created = $this->notified = false; - $this->save_update($old_user); + return $this->save_update($old_user); } /** @param ?Contact $old_user * @return ?Contact */ - function save_update($cj, $old_user = null) { + function save_update($old_user = null) { assert(is_object($this->jval)); assert(!$old_user || (!$this->no_create && !$this->no_modify)); $cj = $this->jval;