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(); ?>