mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 16:43:42 +00:00
Merge pull request '[smileybutton] Add explicit conversion from float to int' (#1431) from warnings into 2023.09-rc
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1431
This commit is contained in:
commit
9c53c0c8d1
1 changed files with 1 additions and 1 deletions
|
@ -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>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue