Skip to content

Commit

Permalink
DbConnection::__construct(): Set prefix if configured
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Oct 20, 2014
1 parent aa56f30 commit 2b67683
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Icinga/Data/Db/DbConnection.php
Expand Up @@ -64,6 +64,9 @@ class DbConnection implements Selectable
public function __construct(Zend_Config $config = null)
{
$this->config = $config;
if (isset($config->prefix)) {
$this->tablePrefix = $config->prefix;
}
$this->connect();
}

Expand Down

0 comments on commit 2b67683

Please sign in to comment.