]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/apilistusers.php
lib/ping.php - Fix PHP 7.3 Warning switch continue -> break
[quix0rs-gnu-social.git] / lib / apilistusers.php
index 0312510ef6fd89f6b8ca595bc32d9475b498d647..13d1a8c580d44e92f18c347040d5ff330a1708a4 100644 (file)
@@ -40,7 +40,7 @@ class ApiListUsersAction extends ApiBareAuthAction
     var $prev_cursor = 0;
     var $users = null;
 
-    protected function prepare($args)
+    protected function prepare(array $args=array())
     {
         // delete list member if method is DELETE or if method is POST and an argument
         // _method is set to DELETE
@@ -63,7 +63,6 @@ class ApiListUsersAction extends ApiBareAuthAction
         if (empty($this->list)) {
             // TRANS: Client error displayed when referring to a non-existing list.
             $this->clientError(_('List not found.'), 404, $this->format);
-            return false;
         }
 
         if(!$this->create && !$this->delete) {