From dd8116cc61e691c99e7462198cd72742bb763e02 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Wed, 17 Aug 2011 17:01:11 +0200 Subject: [PATCH] Two more fixes for Tracking in Drizzle --- libraries/Tracker.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/Tracker.class.php b/libraries/Tracker.class.php index 5ee0731a65..05d8bff2ac 100644 --- a/libraries/Tracker.class.php +++ b/libraries/Tracker.class.php @@ -251,7 +251,7 @@ class PMA_Tracker // Get data definition snapshot of table - $columns = PMA_DBI_get_columns($dbname, $tablename, true); + $columns = PMA_DBI_get_columns($dbname, $tablename, null, true); // int indices to reduce size $columns = array_values($columns); // remove Privileges to reduce size @@ -260,6 +260,9 @@ class PMA_Tracker } $indexes = PMA_DBI_get_table_indexes($dbname, $tablename); + if (!$indexes) { + $indexes = array(); + } $snapshot = array('COLUMNS' => $columns, 'INDEXES' => $indexes); $snapshot = serialize($snapshot); -- 2.11.4.GIT