Permalink
Browse files

Moving call to _getConnectionObjects() inside class_exists check. Rem…

…oves errors when creating a connection with no DATABASE_CONFIG class.
  • Loading branch information...
1 parent 7b83c45 commit ba06b5b456b8b2d30c462f1e80cd54912d95a0f4 @markstory markstory committed Mar 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/connection_manager.php
View
2 cake/libs/model/connection_manager.php
@@ -61,8 +61,8 @@ class ConnectionManager extends Object {
function __construct() {
if (class_exists('DATABASE_CONFIG')) {
$this->config =& new DATABASE_CONFIG();
+ $this->_getConnectionObjects();
}
- $this->_getConnectionObjects();
}
/**

0 comments on commit ba06b5b

Please sign in to comment.