1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:15:56 +00:00

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

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 */