From cfbcabbfdb5c94ca9f5489a222b16cdf82201a0d Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 12 Aug 2023 08:13:29 +0200 Subject: [PATCH] Fix accounts editor store_history column not found --- admin/pages/accounts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/pages/accounts.php b/admin/pages/accounts.php index 550ea670..0c58d94e 100644 --- a/admin/pages/accounts.php +++ b/admin/pages/accounts.php @@ -272,7 +272,7 @@ else if (isset($_REQUEST['search'])) { hasTable('store_history')) : ?> + if ($db->hasTable('store_history') && $db->hasColumn('store_history', 'time')) : ?> @@ -523,7 +523,7 @@ else if (isset($_REQUEST['search'])) { } ?> hasTable('store_history')) { ?> + if ($db->hasTable('store_history') && $db->hasColumn('store_history', 'time')) { ?>
query('SELECT * FROM `store_history` WHERE `account_id` = "' . $account->getId() . '" ORDER BY `time` DESC')->fetchAll(); ?>