Skip to content

Commit

Permalink
only add underscore if we have a prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Dec 14, 2010
1 parent 8c1ed8b commit aafb0d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zf1/Akrabat/Tool/DatabaseSchemaProvider.php
Expand Up @@ -128,9 +128,9 @@ public function getTablePrefix()
if ((null === $this->_tablePrefix)) {
$prefix = '';
if (isset($this->_config->resources->db->table_prefix)) {
$prefix = $this->_config->resources->db->table_prefix;
$prefix = $this->_config->resources->db->table_prefix . '_';
}
$this->_tablePrefix = $prefix.'_';
$this->_tablePrefix = $prefix;
}
return $this->_tablePrefix;
}
Expand Down
3 changes: 1 addition & 2 deletions zf2/Akrabat/Tool/DatabaseSchemaProvider.php
Expand Up @@ -133,9 +133,8 @@ public function getTablePrefix()
if ((null === $this->_tablePrefix)) {
$prefix = '';
if (isset($this->_config->resources->db->table_prefix)) {
$prefix = $this->_config->resources->db->table_prefix;
$prefix = $this->_config->resources->db->table_prefix . '_';
}
$this->_tablePrefix = $prefix.'_';
}
return $this->_tablePrefix;
}
Expand Down

0 comments on commit aafb0d3

Please sign in to comment.