diff options
Diffstat (limited to 'frontends/php/include/func.inc.php')
-rw-r--r-- | frontends/php/include/func.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontends/php/include/func.inc.php b/frontends/php/include/func.inc.php index 0881d5dd..253b731e 100644 --- a/frontends/php/include/func.inc.php +++ b/frontends/php/include/func.inc.php @@ -345,6 +345,14 @@ function zbx_nl2br(&$str){ } return $str_res; } + +function zbx_value2array(&$values){ + if(!is_array($values) && !is_null($values)){ + $tmp = array(); + $tmp[$values] = $values; + $values = $tmp; + } +} /************* END ZBX MISC *************/ ?>
\ No newline at end of file |