API: fix unexpected null being passed to _order_to_override_query

This commit is contained in:
Andrew Dolgov 2021-11-18 11:01:46 +03:00
parent b77f6c9a6b
commit 9ac67c7973
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class API extends Handler {
$_SESSION['hasSandbox'] = $has_sandbox;
list($override_order, $skip_first_id_check) = Feeds::_order_to_override_query(clean($_REQUEST["order_by"] ?? null));
list($override_order, $skip_first_id_check) = Feeds::_order_to_override_query(clean($_REQUEST["order_by"]) ?? "");
/* do not rely on params below */