From 189dcc7c3ac946f9fbacf309aad4b120fc403eb8 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Thu, 4 Jan 2018 16:59:05 +0100 Subject: [PATCH] Fix dell'aggiornamento (#97) --- update/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/api.php b/update/api.php index ce26e66fe..67e5451a9 100644 --- a/update/api.php +++ b/update/api.php @@ -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)) {