]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/registeruser.php
File_redirection->getFile could never get the file anyway if $redir->file_id was...
[quix0rs-gnu-social.git] / scripts / registeruser.php
old mode 100644 (file)
new mode 100755 (executable)
index d2a47b6..97caf64
@@ -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) {