Skip to content

Commit 260c534

Browse files
committed
fix bug in type cast
1 parent 20280aa commit 260c534

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

class/Form/FormRadio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function render()
4949
}
5050
$ret .= '<td class="radio">';
5151
}
52-
$ret .= '<input type="radio" name="' . $ele_name . '" id="' . $ele_name . '[' . $value . ']' . $id_ele . '" title = "' . htmlspecialchars($ele_title, ENT_QUOTES) . '" value="' . htmlspecialchars($value, ENT_QUOTES) . '"';
52+
$ret .= '<input type="radio" name="' . $ele_name . '" id="' . $ele_name . '[' . $value . ']' . $id_ele . '" title = "' . htmlspecialchars((string)$ele_title, ENT_QUOTES) . '" value="' . htmlspecialchars($value, ENT_QUOTES) . '"';
5353
if (isset($ele_value) && $value == $ele_value) {
5454
$ret .= ' checked';
5555
}

docs/changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- table renaming in fieldelements (goffy)
1919
- added new fieldelements integer/float (goffy)
2020
- uninstall with bak-file creation (mamba/goffy)
21+
- module update to php8 (mamba)
22+
- fix bug in type cast (liomj/goffy)
2123

2224
<h5>3.5.1 Beta 1 [NOT RELEASED]</h5> Dev: XOOPS 2.5.11, PHP 7.4.25, PHP 8.0.12, PHP 8.1.0 Beta 4
2325
- semantic versioning (mamba)

0 commit comments

Comments
 (0)