Add foreign keys for profile tables.
[platal.git] / include / validations / names.inc.php
index 2893d65..5d9affe 100644 (file)
@@ -137,7 +137,7 @@ class NamesReq extends ProfileValidate
                             $this->profileOwner->id(), true, $this->new_alias);
 
             // Update the local User object, to pick up the new bestalias.
-            $this->profileOwner = User::getSilent($this->profileOwner->id());
+            $this->profileOwner = User::getSilentWithUID($this->profileOwner->id());
         }
 
         return true;