]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
added missing return statement after showForm call
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 6 Aug 2012 20:35:38 +0000 (22:35 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Aug 2013 10:44:19 +0000 (12:44 +0200)
commitea837cea673fd280caa20b9d8a3814da55bf7643
tree170458da9a9c4dea2579d7d81ce4a07d56bb7d66
parent3ad3535cd8d12787d1af95969b9576620abce4a9
added missing return statement after showForm call

Issue #3125 at http://status.net/open-source/issues/3125 (and its duplicate 3127) describe buggy behaviour when trying to create a new group - i.e. the group is still created but with nickname NULL.

The reason the group is created is that when failing Nickname::normalize, the function trySave() in actions/newgroup.php doesn't call 'return' - meaning it just keeps going despite the error thrown. It a

So the simple solution to this bug was adding a return call at line 128, inside the catch just after the showForm(...) call.
actions/newgroup.php