From 1adf64e6bba5741b531d27b550f0dffa8db5f5f3 Mon Sep 17 00:00:00 2001 From: artem Date: Wed, 6 Aug 2008 12:53:19 +0000 Subject: - [DEV-137] added Hint to acknowledged events (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5881 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/func.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'frontends/php/include/func.inc.php') diff --git a/frontends/php/include/func.inc.php b/frontends/php/include/func.inc.php index 241ca486..0881d5dd 100644 --- a/frontends/php/include/func.inc.php +++ b/frontends/php/include/func.inc.php @@ -337,6 +337,14 @@ function str_in_array($needle,$haystack,$strict=false){ return false; } +function zbx_nl2br(&$str){ + $str_res = array(); + $str_arr = explode("\n",$str); + foreach($str_arr as $id => $str_line){ + array_push($str_res,$str_line,BR()); + } +return $str_res; +} /************* END ZBX MISC *************/ ?> \ No newline at end of file -- cgit