diff options
author | Andrey Andreev <narf@devilix.net> | 2018-09-11 16:29:56 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2018-09-11 16:29:56 +0200 |
commit | 89288a4ad3411b597eb1e7041660e912c611cfb0 (patch) | |
tree | 6a2a63179e949d9f09c0eff2e5272c500d08738e /system/database/DB_forge.php | |
parent | a44257a9b34b235db3d54dc7ac579934683ebc25 (diff) |
[ci skip] Fix #5587
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r-- | system/database/DB_forge.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index 152f8f651..4d23e4e7b 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -348,7 +348,10 @@ abstract class CI_DB_forge { if (($result = $this->db->query($sql)) !== FALSE) { - isset($this->db->data_cache['table_names']) && $this->db->data_cache['table_names'][] = $table; + if (isset($this->db->data_cache['table_names'])) + { + $this->db->data_cache['table_names'][] = $table; + } // Most databases don't support creating indexes from within the CREATE TABLE statement if ( ! empty($this->keys)) |