]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/registeruser.php
Managed_DataObject->updateWithKeys throws its own exception
[quix0rs-gnu-social.git] / scripts / registeruser.php
index cc0bd5598de088e7d72808470e7734c93cdff914..97caf645cd6eb812904d9c68da110e958e30ca49 100644 (file)
@@ -69,10 +69,8 @@ try {
 
         $user->email = $email;
 
-        if (!$user->updateWithKeys($orig)) {
-            print "Failed!\n";
-            throw new Exception("Can't update email address.");
-        }
+        // Throws exception on failure.
+        $user->updateWithKeys($orig);
     }
 
 } catch (Exception $e) {