mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
replace ctype_digit with is_numeric, as ctype_digit returns false on integers
This commit is contained in:
parent
4973f0114d
commit
c0dcb66ebc
@ -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>";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user