diff options
author | Dan Horrigan <dan@dhorrigan.com> | 2011-08-21 15:08:31 +0200 |
---|---|---|
committer | Dan Horrigan <dan@dhorrigan.com> | 2011-08-21 15:08:31 +0200 |
commit | 628e6607c4bbd8ea612df80bb9925b7d3ec34765 (patch) | |
tree | 21c2b917de1b9389ce09815b7b728c520b14ee70 | |
parent | d0ddeafedc2d9dfa3c1543b5e7aefd1ff29f6deb (diff) |
Changed set_wordwrap() to cast the parameter as a boolean instead of using a ternary. Also fixed the doc block.
-rw-r--r-- | system/libraries/Email.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index f1d65a3eb..28a3d17b4 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -477,12 +477,12 @@ class CI_Email { * Set Wordwrap * * @access public - * @param string + * @param bool * @return void */ public function set_wordwrap($wordwrap = TRUE) { - $this->wordwrap = ($wordwrap === FALSE) ? FALSE : TRUE; + $this->wordwrap = (bool) $wordwrap; return $this; } |