summaryrefslogtreecommitdiffstats
path: root/system/helpers/captcha_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-26 20:55:43 +0200
committerAndrey Andreev <narf@bofh.bg>2012-03-26 20:55:43 +0200
commita720961bcfa6b70b8d672b4861f8665763fc881a (patch)
treecf38af36db478ec056ed5d885ef733e7f7bcea82 /system/helpers/captcha_helper.php
parent33101f42a8111a6e070cae495ec13e1e79207997 (diff)
Some more minor improvements
Diffstat (limited to 'system/helpers/captcha_helper.php')
-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 bdc3910db..1e6ee3c07 100644
--- a/system/helpers/captcha_helper.php
+++ b/system/helpers/captcha_helper.php
@@ -54,13 +54,13 @@ if ( ! function_exists('create_captcha'))
foreach ($defaults as $key => $val)
{
- if ( ! is_array($data) && ( ! isset($$key) OR $$key == ''))
+ if ( ! is_array($data) && empty($$key))
{
$$key = $val;
}
else
{
- $$key = ( ! isset($data[$key])) ? $val : $data[$key];
+ $$key = isset($data[$key]) ? $data[$key] : $val;
}
}