Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikel committed Nov 22, 2024
1 parent eb3793e commit 971eebc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/utils/checkint.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
*/

function checkInt(&$int) {
if ($int === true) {
$int = 1;
return true;
}
if ($int === false) {
$int = 0;
return true;
}
$int_ = trim($int);
$_int = strval((int)$int);
if ($int_ != $_int) {
Expand Down

0 comments on commit 971eebc

Please sign in to comment.