From c0dcb66ebc8406b18917916ebeb96c79a53479a3 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 6 Jun 2012 10:48:58 +0000 Subject: [PATCH] replace ctype_digit with is_numeric, as ctype_digit returns false on integers --- phpgwapi/inc/class.egw_htmLawed.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.egw_htmLawed.inc.php b/phpgwapi/inc/class.egw_htmLawed.inc.php index d9c09f681f..ac9b20c09f 100644 --- a/phpgwapi/inc/class.egw_htmLawed.inc.php +++ b/phpgwapi/inc/class.egw_htmLawed.inc.php @@ -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 ""; } @@ -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 ""; }