]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If there's a DB error, script returns after catching the exception
authormacno <macno@macno.org>
Mon, 28 Feb 2011 10:53:11 +0000 (11:53 +0100)
committermacno <macno@macno.org>
Mon, 28 Feb 2011 10:53:11 +0000 (11:53 +0100)
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')) {