mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix accounts editor store_history column not found
This commit is contained in:
parent
538723c405
commit
cfbcabbfdb
@ -272,7 +272,7 @@ else if (isset($_REQUEST['search'])) {
|
|||||||
</li>
|
</li>
|
||||||
<?php endif;
|
<?php endif;
|
||||||
|
|
||||||
if ($db->hasTable('store_history')) : ?>
|
if ($db->hasTable('store_history') && $db->hasColumn('store_history', 'time')) : ?>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="accounts-store-tab" data-toggle="pill" href="#accounts-store">Store History</a>
|
<a class="nav-link" id="accounts-store-tab" data-toggle="pill" href="#accounts-store">Store History</a>
|
||||||
</li>
|
</li>
|
||||||
@ -523,7 +523,7 @@ else if (isset($_REQUEST['search'])) {
|
|||||||
} ?>
|
} ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif;
|
<?php endif;
|
||||||
if ($db->hasTable('store_history')) { ?>
|
if ($db->hasTable('store_history') && $db->hasColumn('store_history', 'time')) { ?>
|
||||||
<div class="tab-pane fade" id="accounts-store">
|
<div class="tab-pane fade" id="accounts-store">
|
||||||
<?php $store_history = $db->query('SELECT * FROM `store_history` WHERE `account_id` = "' . $account->getId() . '" ORDER BY `time` DESC')->fetchAll(); ?>
|
<?php $store_history = $db->query('SELECT * FROM `store_history` WHERE `account_id` = "' . $account->getId() . '" ORDER BY `time` DESC')->fetchAll(); ?>
|
||||||
<table class="table table-striped table-condensed table-responsive d-md-table">
|
<table class="table table-striped table-condensed table-responsive d-md-table">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user