Browse Source

We should at least log an error away

euromark 11 years ago
parent
commit
ac3056df3c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Lib/EmailLib.php

+ 2 - 0
Lib/EmailLib.php

@@ -437,6 +437,8 @@ class EmailLib extends CakeEmail {
 
 			if (!empty($this->_config['logReport'])) {
 				$this->_logEmail();
+			} else {
+				CakeLog::write('error', $this->_error);
 			}
 			return false;
 		}