]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong use of empty()
authorPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 22:55:05 +0000 (00:55 +0200)
committerPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 22:55:05 +0000 (00:55 +0200)
include/api.php

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