X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fregisteruser.php;h=97caf645cd6eb812904d9c68da110e958e30ca49;hb=d4bdfc2aa27a592427632050807a0d583b595d96;hp=d2a47b6be9737b27f3cc30603aefd496cdbb9344;hpb=220b51d8be61e9bd316567f3ad03fffdbc4b7526;p=quix0rs-gnu-social.git diff --git a/scripts/registeruser.php b/scripts/registeruser.php index d2a47b6be9..97caf645cd 100644 --- a/scripts/registeruser.php +++ b/scripts/registeruser.php @@ -69,10 +69,8 @@ try { $user->email = $email; - if (!$user->updateKeys($orig)) { - print "Failed!\n"; - throw new Exception("Can't update email address."); - } + // Throws exception on failure. + $user->updateWithKeys($orig); } } catch (Exception $e) {