]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/mailbox.php
Cosmetic changes to common_redirect, clientError, serverError
[quix0rs-gnu-social.git] / lib / mailbox.php
index b1720fc82478dd033f534a2cdd6a115bff835d83..3c7281e9852121d2b948b39eac803d092058e313 100644 (file)
@@ -77,16 +77,13 @@ class MailboxAction extends Action
         if (!$this->user) {
             // TRANS: Client error displayed when trying to access a mailbox without providing a user.
             $this->clientError(_('No such user.'), 404);
-            return;
         }
 
         $cur = common_current_user();
 
         if (!$cur || $cur->id != $this->user->id) {
             // TRANS: Client error displayed when trying to access a mailbox that is not of the logged in user.
-            $this->clientError(_('Only the user can read their own mailboxes.'),
-                403);
-            return;
+            $this->clientError(_('Only the user can read their own mailboxes.'), 403);
         }
 
         $this->showPage();