]> git.mxchange.org Git - friendica.git/commitdiff
Use empty() instead of !x()
authorPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 21:21:51 +0000 (23:21 +0200)
committerPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 21:21:51 +0000 (23:21 +0200)
include/api.php

index 40afd4b08b7081aae343a4ced51a72bc14d94d70..f5fb96cb470286a089d74030dfbb59acdb8da9c2 100644 (file)
@@ -3354,7 +3354,7 @@ function api_lists_statuses($type)
        unset($_GET["screen_name"]);
 
        $user_info = api_get_user($a);
-       if (!x($_REQUEST, 'list_id')) {
+       if (empty($_REQUEST, 'list_id')) {
                throw new BadRequestException('list_id not specified');
        }