From 3cabe5fd792fced4120de02cfef66900b49516c4 Mon Sep 17 00:00:00 2001 From: PayBas Date: Mon, 26 May 2014 20:47:19 +0200 Subject: [ticket/12561] Added tests for "after last", "after missing" and "empty" Also removed tabs PHPBB3-12561 --- phpBB/phpbb/db/migration/schema_generator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/phpbb/db/migration') diff --git a/phpBB/phpbb/db/migration/schema_generator.php b/phpBB/phpbb/db/migration/schema_generator.php index f36e6a96d5..18c99fb94a 100644 --- a/phpBB/phpbb/db/migration/schema_generator.php +++ b/phpBB/phpbb/db/migration/schema_generator.php @@ -112,8 +112,8 @@ class schema_generator $columns = $this->tables[$table]['COLUMNS']; $offset = array_search($column_data['after'], array_keys($columns)); unset($column_data['after']); - - if ($offset == false) + + if ($offset === false) { $this->tables[$table]['COLUMNS'][$column] = array_values($column_data); } -- cgit v1.2.1