]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/galleryaction.php
Type testing instead of just empty() in OStatusPlugin
[quix0rs-gnu-social.git] / lib / galleryaction.php
index 85e3f0de3ebb6e2e6b016ad79b0f9307d5dde90e..975933f6cceeb492c393f985d0d64594b1663b29 100644 (file)
@@ -51,7 +51,6 @@ class GalleryAction extends ProfileAction
                 $args['page'] = $this->arg['page'];
             }
             common_redirect(common_local_url($this->trimmed('action'), $args), 301);
-            return false;
         }
 
         $this->user = User::getKV('nickname', $nickname);
@@ -59,7 +58,6 @@ class GalleryAction extends ProfileAction
         if (!$this->user) {
             // TRANS: Client error displayed when trying to perform a gallery action with an unknown user.
             $this->clientError(_('No such user.'), 404);
-            return false;
         }
 
         $this->profile = $this->user->getProfile();
@@ -67,7 +65,6 @@ class GalleryAction extends ProfileAction
         if (!$this->profile) {
             // TRANS: Error message displayed when referring to a user without a profile.
             $this->serverError(_('User has no profile.'));
-            return false;
         }
 
         $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
@@ -91,7 +88,6 @@ class GalleryAction extends ProfileAction
 
                if ($_SERVER['REQUEST_METHOD'] == 'POST') {
                    common_redirect($this->selfUrl(), 303);
-            return;
                }
 
         $this->showPage();