summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorGeorge Petculescu <gxgpet@gmail.com>2019-09-22 19:56:55 +0200
committerGeorge Petculescu <gxgpet@gmail.com>2019-09-22 19:56:55 +0200
commit25931b0d5e639cf48dd8488b46975787ee5e5ed2 (patch)
treebdd0c16872b7d75cd1116b5207e600f7be533e2d /system/helpers
parent98baf38d5384b316fc443f764d01041c8912d31e (diff)
if+elseif => if + if
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/captcha_helper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php
index ca9b86540..4552225ef 100644
--- a/system/helpers/captcha_helper.php
+++ b/system/helpers/captcha_helper.php
@@ -109,7 +109,9 @@ if ( ! function_exists('create_captcha'))
{
log_message('error', 'create_captcha(): "img_path" and "img_url" are required.');
return FALSE;
- } elseif ( ! is_dir($img_path) OR ! is_really_writable($img_path))
+ }
+
+ if ( ! is_dir($img_path) OR ! is_really_writable($img_path))
{
log_message('error', "create_captcha(): '$img_path' is not a dir, nor it's writable.");
return FALSE;