X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Funblock.php;h=cb03214a9f02db44144b720e0c86da2275ed62b4;hb=fe11f9a28c8ef2df46e09c53276f8d2184b03f2e;hp=1f4d9606b85a7da875dc6ccf030feab2bc72c1ca;hpb=59a0b2a82da418f688faf182407146d9e7a7af7a;p=quix0rs-gnu-social.git diff --git a/actions/unblock.php b/actions/unblock.php index 1f4d9606b8..cb03214a9f 100644 --- a/actions/unblock.php +++ b/actions/unblock.php @@ -44,7 +44,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { */ class UnblockAction extends ProfileFormAction { - function prepare($args) + function prepare(array $args=array()) { if (!parent::prepare($args)) { return false; @@ -57,7 +57,6 @@ class UnblockAction extends ProfileFormAction if (!$cur->hasBlocked($this->profile)) { // TRANS: Client error displayed when trying to unblock a non-blocked user. $this->clientError(_("You haven't blocked that user.")); - return false; } return true; @@ -84,7 +83,6 @@ class UnblockAction extends ProfileFormAction if (!$result) { // TRANS: Server error displayed when removing a user block. $this->serverError(_('Error removing the block.')); - return; } } }