[smileybutton] Add explicit conversion from float to int

Address part of https://github.com/friendica/friendica/issues/13157#issuecomment-1771572442
pull/1431/head
Hypolite Petovan 2023-10-20 17:50:31 +02:00
parent be8d8b9c10
commit 4cf8803de9
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ function smileybutton_jot_tool(string &$body)
for ($x = 0; $x < count($params['texts']); $x++) { for ($x = 0; $x < count($params['texts']); $x++) {
$icon = $params['icons'][$x]; $icon = $params['icons'][$x];
$s .= '<td onclick="smileybutton_addsmiley(\'' . $params['texts'][$x] . '\')">' . $icon . '</td>'; $s .= '<td onclick="smileybutton_addsmiley(\'' . $params['texts'][$x] . '\')">' . $icon . '</td>';
if (($x + 1) % (sqrt(count($params['texts'])) + 1) == 0) { if (($x + 1) % (floor(sqrt(count($params['texts']))) + 1) == 0) {
$s .= '</tr><tr>'; $s .= '</tr><tr>';
} }
} }