Skip to content

Commit 005ecf1

Browse files
committed
Ensure the table_prefix is assigned. Fixes #4033
1 parent f226b91 commit 005ecf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

classes/kohana/database.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ protected function __construct($name, array $config)
113113
// Store the config locally
114114
$this->_config = $config;
115115

116+
if (empty($this->_config['table_prefix']))
117+
{
118+
$this->_config['table_prefix'] = '';
119+
}
120+
116121
// Store the database instance
117122
Database::$instances[$name] = $this;
118123
}

0 commit comments

Comments
 (0)