mirror of
https://github.com/wheelybird/ldap-user-manager.git
synced 2025-01-18 07:32:53 +01:00
Explicit float to int conversion (#153)
Prevent "Implicit conversion from float (number) to int loses precision" errors.
This commit is contained in:
parent
b6e5513d5e
commit
ec4e430112
@ -66,7 +66,7 @@ for($i = 0; $i < $num_chars; $i++) {
|
||||
$txt_col = $textcols[rand(0,1)];
|
||||
$txt_font = $fonts[array_rand($fonts)];
|
||||
$txt = $human_proof[$i];
|
||||
imagettftext($image, $size, $angle, $txt_x, $txt_y, $txt_col, $txt_font, $txt);
|
||||
imagettftext($image, $size, $angle, (int)$txt_x, (int)$txt_y, $txt_col, $txt_font, $txt);
|
||||
# print "imagettftext( $size, $angle, $txt_x, $txt_y, $txt_col, $txt_font, $txt);<p>";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user