diff options
author | Alex Bilbie <alex@alexbilbie.com> | 2012-06-02 12:11:08 +0200 |
---|---|---|
committer | Alex Bilbie <alex@alexbilbie.com> | 2012-06-02 12:11:08 +0200 |
commit | 773ccc318f2769c9b7579630569b5d8ba47b114b (patch) | |
tree | 6f6f5f7a1c5043a067df9cc6c0dce670d8b26880 /system/helpers/captcha_helper.php | |
parent | 48a2baf0e288accd206f5da5031d29076e130792 (diff) |
Replaced `==` with `===` and `!=` with `!==` in /system/helpers
Diffstat (limited to 'system/helpers/captcha_helper.php')
-rw-r--r-- | system/helpers/captcha_helper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php index b11670658..4676b2a65 100644 --- a/system/helpers/captcha_helper.php +++ b/system/helpers/captcha_helper.php @@ -64,7 +64,7 @@ if ( ! function_exists('create_captcha')) } } - if ($img_path == '' OR $img_url == '' + if ($img_path === '' OR $img_url === '' OR ! @is_dir($img_path) OR ! is_writeable($img_path) OR ! extension_loaded('gd')) { @@ -93,7 +93,7 @@ if ( ! function_exists('create_captcha')) // Do we have a "word" yet? // ----------------------------------- - if ($word == '') + if ($word === '') { $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $word = ''; @@ -156,7 +156,7 @@ if ( ! function_exists('create_captcha')) // Write the text // ----------------------------------- - $use_font = ($font_path != '' && file_exists($font_path) && function_exists('imagettftext')); + $use_font = ($font_path !== '' && file_exists($font_path) && function_exists('imagettftext')); if ($use_font === FALSE) { $font_size = 5; |