replace ctype_digit with is_numeric, as ctype_digit returns false on integers

This commit is contained in:
Klaus Leithoff 2012-06-06 10:48:21 +00:00
parent 616fbeec40
commit 920729a0bc

View File

@ -118,7 +118,7 @@ class egw_htmLawed
function hl_my_tag_transform($element, $attribute_array=0)
{
// If second argument is not received, it means a closing tag is being handled
if(ctype_digit($attribute_array)){
if(is_numeric($attribute_array)){
return "</$element>";
}
@ -187,7 +187,7 @@ function hl_my_tag_transform($element, $attribute_array=0)
function hl_email_tag_transform($element, $attribute_array=0)
{
// If second argument is not received, it means a closing tag is being handled
if(ctype_digit($attribute_array)){
if(is_numeric($attribute_array)){
return "</$element>";
}