diff --git a/endpoints/subscriptions/get.php b/endpoints/subscriptions/get.php index 3ddddd669..1a0befb0f 100644 --- a/endpoints/subscriptions/get.php +++ b/endpoints/subscriptions/get.php @@ -16,11 +16,11 @@ if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true) { $sort = "next_payment"; + $order = "ASC"; $sql = "SELECT * FROM subscriptions ORDER BY next_payment ASC, inactive ASC"; if (isset($_COOKIE['sortOrder']) && $_COOKIE['sortOrder'] != "") { $sort = $_COOKIE['sortOrder']; $allowedSortCriteria = ['name', 'id', 'next_payment', 'price', 'payer_user_id', 'category_id', 'payment_method_id']; - $order = "ASC"; if ($sort == "price" || $sort == "id") { $order = "DESC"; } diff --git a/includes/version.php b/includes/version.php index c6632051b..6ba1ff4b1 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@ \ No newline at end of file