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:58 +00:00
parent 4973f0114d
commit c0dcb66ebc

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>";
}