[ci skip] Fix 5070
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 955787d..d4b9387 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -941,7 +941,7 @@
 
 		foreach ($this->_base_charsets as $charset)
 		{
-			if (strpos($charset, $this->charset) === 0)
+			if (strpos($this->charset, $charset) === 0)
 			{
 				$this->_encoding = '7bit';
 			}