From 25931b0d5e639cf48dd8488b46975787ee5e5ed2 Mon Sep 17 00:00:00 2001 From: George Petculescu Date: Sun, 22 Sep 2019 20:56:55 +0300 Subject: if+elseif => if + if --- system/helpers/captcha_helper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system') 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; -- cgit v1.2.3-24-g4f1b