mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Added ability to show links to fixes for validate (#6054)
* feature: Added ability to show links to fixes for validate * Finish this PR up and add a few more messages Move collation checks to print_list()
This commit is contained in:
@@ -1481,6 +1481,12 @@ function get_auth_ad_group_filter($groupname)
|
||||
*/
|
||||
function print_list($list, $format, $max = 10)
|
||||
{
|
||||
if (is_array(current($list))) {
|
||||
$list = array_map(function ($item) {
|
||||
return implode(' ', $item);
|
||||
}, $list);
|
||||
}
|
||||
|
||||
foreach (array_slice($list, 0, $max) as $item) {
|
||||
printf($format, $item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user