From 1e9e167c706ab0c9edc5a5f1a1cce7844bbd3258 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Fri, 23 Feb 2024 02:53:28 +0100 Subject: [PATCH] Move query to where it's used --- settings.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/settings.php b/settings.php index 2bb7e6a39..4d03bb438 100644 --- a/settings.php +++ b/settings.php @@ -298,18 +298,6 @@ - query($sql); - - if ($result) { - $payments = array(); - while ($row = $result->fetchArray(SQLITE3_ASSOC)) { - $payments[] = $row; - } - } - ?> - query($sql); @@ -472,6 +460,18 @@ + query($sql); + + if ($result) { + $payments = array(); + while ($row = $result->fetchArray(SQLITE3_ASSOC)) { + $payments[] = $row; + } + } + ?> +