mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix dell'aggiornamento (#97)
This commit is contained in:
@@ -92,7 +92,7 @@ $tables = [
|
|||||||
|
|
||||||
foreach ($tables as $table) {
|
foreach ($tables as $table) {
|
||||||
if ($database->fetchNum('SHOW TABLES WHERE `Tables_in_'.$database->getDatabaseName().'` = '.prepare($table))) {
|
if ($database->fetchNum('SHOW TABLES WHERE `Tables_in_'.$database->getDatabaseName().'` = '.prepare($table))) {
|
||||||
$query = 'SHOW COLUMNS FROM '.$table.' FROM '.$database->getDatabaseName()." WHERE Field='|field|'";
|
$query = 'SHOW COLUMNS FROM `'.$table.'` IN `'.$database->getDatabaseName()."` WHERE Field='|field|'";
|
||||||
|
|
||||||
$created_at = $database->fetchArray(str_replace('|field|', 'created_at', $query));
|
$created_at = $database->fetchArray(str_replace('|field|', 'created_at', $query));
|
||||||
if (empty($created_at)) {
|
if (empty($created_at)) {
|
||||||
|
Reference in New Issue
Block a user