isNumber is fixed

This commit is contained in:
sparkyx 2007-04-12 21:32:25 +00:00
parent e51e96ea56
commit 2cfaf5d401

View file

@ -78,7 +78,7 @@ function cmpDate ($p_date,$p_date_oth) {
function isNumber($p_int) {
if ( strlen (trim($p_int)) == 0 ) return 0;
if ( (string) $p_int === (string) (int) $p_int )
if ( (string) $p_int === (string) (float) $p_int )
return 1;
else
return 0;