diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-08-06 12:53:19 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-08-06 12:53:19 +0000 |
| commit | 1adf64e6bba5741b531d27b550f0dffa8db5f5f3 (patch) | |
| tree | 7a97ee27ebd5fc250e24dd0ccc0c26a1e29de5e2 /frontends/php/include/func.inc.php | |
| parent | 1dbcd26106d91a0ca024f00e33cbc7ab108cdc28 (diff) | |
- [DEV-137] added Hint to acknowledged events (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5881 97f52cf1-0a1b-0410-bd0e-c28be96e8082
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 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 |
