summaryrefslogtreecommitdiffstats
path: root/system/helpers/captcha_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-12-17 09:04:15 +0100
committerAndrey Andreev <narf@devilix.net>2018-12-17 09:06:43 +0100
commit98756ba4d973d22ef8725db70eabf5a26a4737a3 (patch)
tree89b7e75e68cc250c59d4e7b331868f6155284d9a /system/helpers/captcha_helper.php
parent0849a242ef23d1c3e67877e02f018515ffc0bc67 (diff)
[ci skip] Merge pull request #5652 from Khuthaily/patch-1
Add px to width and height inline style output of create_captcha()
Diffstat (limited to 'system/helpers/captcha_helper.php')
-rw-r--r--system/helpers/captcha_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/captcha_helper.php b/system/helpers/captcha_helper.php
index a67b72bd5..94779e4e2 100644
--- a/system/helpers/captcha_helper.php
+++ b/system/helpers/captcha_helper.php
@@ -333,7 +333,7 @@ if ( ! function_exists('create_captcha'))
return FALSE;
}
- $img = '<img '.($img_id === '' ? '' : 'id="'.$img_id.'"').' src="'.$img_url.$img_filename.'" style="width: '.$img_width.'; height: '.$img_height .'; border: 0;" alt=" " />';
+ $img = '<img '.($img_id === '' ? '' : 'id="'.$img_id.'"').' src="'.$img_url.$img_filename.'" style="width: '.$img_width.'px; height: '.$img_height .'px; border: 0;" alt=" " />';
ImageDestroy($im);
return array('word' => $word, 'time' => $now, 'image' => $img, 'filename' => $img_filename);