Dynamic modals: codesmell

This commit is contained in:
Marcus Hill
2023-04-09 20:14:15 +01:00
parent bdf74e77ba
commit 5f79931787
2 changed files with 4 additions and 3 deletions

View File

@@ -333,7 +333,8 @@ if (isset($_GET['quote_get_json_details'])) {
$mysqli, $mysqli,
"SELECT category_id, category_name FROM categories "SELECT category_id, category_name FROM categories
WHERE category_type = 'Income' AND (category_archived_at > '$quote_created_at' OR category_archived_at IS NULL) WHERE category_type = 'Income' AND (category_archived_at > '$quote_created_at' OR category_archived_at IS NULL)
ORDER BY category_name"); ORDER BY category_name"
);
while ($row = mysqli_fetch_array($category_sql)) { while ($row = mysqli_fetch_array($category_sql)) {
$response['categories'][] = $row; $response['categories'][] = $row;