diff --git a/lib_db.php b/lib_db.php index be5d9fd..d8a3c8c 100755 --- a/lib_db.php +++ b/lib_db.php @@ -9,7 +9,7 @@ // Check variable type (convert if necessary) function parseVal($dat) { foreach ($dat as $key => $val) { - if ( ctype_digit( $val ) ) { + if ( ctype_digit((string)$val) ) { $dat[ $key ] = intval( $val ); } elseif (is_numeric($val)) { $dat[ $key ] = floatval( $val );