summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2019-01-08 15:48:01 +0100
committerAndrey Andreev <narf@devilix.net>2019-01-08 15:48:01 +0100
commit67563c64025085e61598a83fef3e25bef38b32c4 (patch)
tree531f27e8c51b23067770f22afb4ed99560e5bfde /system/helpers
parent2543fd50ff6106a4654c87dcca4cfe43699a0cf7 (diff)
[ci skip] Fix #5674
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/captcha_helper.php4
1 files changed, 2 insertions, 2 deletions
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))
{