Fix dell'aggiornamento (#97)

This commit is contained in:
Thomas Zilio 2018-01-04 16:59:05 +01:00
parent febaa5ca3c
commit 189dcc7c3a
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ $tables = [
foreach ($tables as $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));
if (empty($created_at)) {