Fix: array_reverse returns the reversed content as return value

This commit is contained in:
Michael 2021-12-05 06:22:04 +00:00
parent a2f1bf6a83
commit d57cb05a24
23 changed files with 23 additions and 23 deletions

View file

@ -79,7 +79,7 @@ class Ids extends ContactEndpoint
DBA::close($contacts);
if (!empty($min_id)) {
array_reverse($ids);
$ids = array_reverse($ids);
}
$return = self::ids($ids, $total_count, $cursor, $count, $stringify_ids);

View file

@ -80,7 +80,7 @@ class Lists extends ContactEndpoint
DBA::close($contacts);
if (!empty($min_id)) {
array_reverse($ids);
$ids = array_reverse($ids);
}
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);

View file

@ -84,7 +84,7 @@ class Ids extends ContactEndpoint
DBA::close($followers);
if (!empty($min_id)) {
array_reverse($ids);
$ids = array_reverse($ids);
}
$return = self::ids($ids, $total_count, $cursor, $count, $stringify_ids);

View file

@ -85,7 +85,7 @@ class Lists extends ContactEndpoint
DBA::close($followers);
if (!empty($min_id)) {
array_reverse($ids);
$ids = array_reverse($ids);
}
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);

View file

@ -84,7 +84,7 @@ class Ids extends ContactEndpoint
DBA::close($followers);
if (!empty($min_id)) {
array_reverse($ids);
$ids = array_reverse($ids);
}
$return = self::ids($ids, $total_count, $cursor, $count, $stringify_ids);

View file

@ -85,7 +85,7 @@ class Lists extends ContactEndpoint
DBA::close($followers);
if (!empty($min_id)) {
array_reverse($ids);
$ids = array_reverse($ids);
}
$return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities);

View file

@ -79,7 +79,7 @@ class Incoming extends ContactEndpoint
DBA::close($contacts);
if (!empty($min_id)) {
array_reverse($ids);
$ids = array_reverse($ids);
}
$return = self::ids($ids, $total_count, $cursor, $count, $stringify_ids);