]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/joingroup.php
If there's a DB error, script returns after catching the exception
[quix0rs-gnu-social.git] / actions / joingroup.php
index 7beaf4f64ac22abb393d69a9f7b42359bcfe5056..4c45ca8b9ddee3137c61d0564ffc89dc255cc802 100644 (file)
@@ -138,6 +138,7 @@ class JoingroupAction extends Action
             // TRANS: %1$s is the joining user's nickname, $2$s is the group nickname for which the join failed.
             $this->serverError(sprintf(_('Could not join user %1$s to group %2$s.'),
                                        $cur->nickname, $this->group->nickname));
+            return;
         }
 
         if ($this->boolean('ajax')) {