diff --git a/code/SQLite3Database.php b/code/SQLite3Database.php index 05b6b6a..bcf9a58 100644 --- a/code/SQLite3Database.php +++ b/code/SQLite3Database.php @@ -542,7 +542,7 @@ class SQLite3Database extends SS_Database { foreach($this->query('SELECT name FROM sqlite_master WHERE type = "table"') as $record) { //$table = strtolower(reset($record)); $table = reset($record); - $tables[$table] = $table; + $tables[strtolower($table)] = $table; } //Return an empty array if there's nothing in this database