mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed scrut issues
This commit is contained in:
@ -788,6 +788,7 @@ function add_config_item($new_conf_name,$new_conf_value,$new_conf_type,$new_conf
|
||||
|
||||
function get_config_by_group($group) {
|
||||
$group = array($group);
|
||||
$items = array();
|
||||
foreach (dbFetchRows("SELECT * FROM `config` WHERE `config_group` = '?'", array($group)) as $config_item) {
|
||||
$val = $config_item['config_value'];
|
||||
if (filter_var($val,FILTER_VALIDATE_INT)) {
|
||||
@ -807,6 +808,7 @@ function get_config_by_group($group) {
|
||||
|
||||
function get_config_like_name($name) {
|
||||
$name = array($name);
|
||||
$items = array();
|
||||
foreach (dbFetchRows("SELECT * FROM `config` WHERE `config_name` LIKE '%?%'", array($name)) as $config_item) {
|
||||
$items[$config_item['config_name']] = $config_item;
|
||||
}
|
||||
|
Reference in New Issue
Block a user