summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-09-13 13:45:53 +0200
committerAndrey Andreev <narf@devilix.net>2013-09-13 13:45:53 +0200
commit5932a7354bf46fb0a86794af37da42f715c355bf (patch)
tree550d77b948a23c6ff06f0bd74e1dedb887898d8f /system/libraries/Email.php
parent838c9a96f645aac24daa31285efa1051535c4219 (diff)
Improvements to safe_mode detection (it doesn't exist in PHP 5.4)
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 082629a4c..efdbfd7c1 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -399,9 +399,9 @@ class CI_Email {
else
{
$this->_smtp_auth = ! ($this->smtp_user === '' && $this->smtp_pass === '');
- $this->_safe_mode = (bool) @ini_get('safe_mode');
}
+ $this->_safe_mode = ( ! is_php('5.4') && (bool) @ini_get('safe_mode'));
$this->charset = strtoupper($this->charset);
log_message('debug', 'Email Class Initialized');
@@ -451,7 +451,6 @@ class CI_Email {
$this->clear();
$this->_smtp_auth = ! ($this->smtp_user === '' && $this->smtp_pass === '');
- $this->_safe_mode = (bool) @ini_get('safe_mode');
return $this;
}