Skip to content
Permalink
Browse files

Load config file before checking class existence.

Closes #7465
  • Loading branch information...
ADmad committed Sep 28, 2015
1 parent dad9eaa commit c3e08fde308ad6ed488ecff4fc5cd3618d99b645
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/Email/CakeEmail.php
@@ -360,7 +360,7 @@ public function __construct($config = null) {
if ($config) {
$this->config($config);
} elseif (class_exists($this->_configClass) && config('email')) {
} elseif (config('email') && class_exists($this->_configClass)) {
$this->_configInstance = new $this->_configClass();
if (isset($this->_configInstance->default)) {
$this->config('default');

0 comments on commit c3e08fd

Please sign in to comment.
You can’t perform that action at this time.