X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fregisteruser.php;h=b7ee9f368ca32aee845c4f429f18a966f5a87199;hb=b15f5f0cafc08c9b63090c5b4f7494fca0634238;hp=e212049bec8152b60d8216416105924b2d53b59c;hpb=dc6f49ba0851d01b38719cc25f3d16f7b74dd4da;p=quix0rs-gnu-social.git diff --git a/scripts/registeruser.php b/scripts/registeruser.php index e212049bec..b7ee9f368c 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) {