From 67563c64025085e61598a83fef3e25bef38b32c4 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 8 Jan 2019 16:48:01 +0200 Subject: [ci skip] Fix #5674 --- system/helpers/captcha_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php index c3ecf9079..94365adb5 100644 --- a/system/helpers/captcha_helper.php +++ b/system/helpers/captcha_helper.php @@ -83,6 +83,8 @@ if ( ! function_exists('create_captcha')) ) ); + $now = microtime(TRUE); + foreach ($defaults as $key => $val) { if ( ! is_array($data) && empty($$key)) @@ -110,8 +112,6 @@ if ( ! function_exists('create_captcha')) /** * Remove old images */ - $now = microtime(TRUE); - $current_dir = @opendir($img_path); while ($filename = @readdir($current_dir)) { -- cgit v1.2.3-24-g4f1b