summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/func.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/func.inc.php')
-rw-r--r--frontends/php/include/func.inc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/php/include/func.inc.php b/frontends/php/include/func.inc.php
index 2e67e260..299ae747 100644
--- a/frontends/php/include/func.inc.php
+++ b/frontends/php/include/func.inc.php
@@ -223,6 +223,12 @@ function zbx_rksort(&$array, $flags=NULL){
/************* END SORT *************/
/************* ZBX MISC *************/
+if(!function_exists('ctype_digit')){
+ function ctype_digit($x){
+ return preg_match('/^\\d+$/',$x);
+ }
+}
+
function zbx_numeric($value){
if(is_array($value)) return false;
if(zbx_empty($value)) return false;