From bef3799942a59ad7caa6c70a412f6f824ceee699 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 7 Apr 2018 23:21:51 +0200 Subject: [PATCH] Use empty() instead of !x() --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 40afd4b08b..f5fb96cb47 100644 --- a/include/api.php +++ b/include/api.php @@ -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'); } -- 2.39.2