mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: PHP 7.1 function usages with too few parameters (#5588)
This commit is contained in:
committed by
Neil Lathwood
parent
6a1fd3ec05
commit
af0446f37f
@@ -42,7 +42,7 @@ foreach ($sections as $type => $texttype) {
|
|||||||
|
|
||||||
unset($sep);
|
unset($sep);
|
||||||
|
|
||||||
print_optionbar_end('', '');
|
print_optionbar_end();
|
||||||
|
|
||||||
if (file_exists('pages/search/'.$vars['search'].'.inc.php')) {
|
if (file_exists('pages/search/'.$vars['search'].'.inc.php')) {
|
||||||
include 'pages/search/'.$vars['search'].'.inc.php';
|
include 'pages/search/'.$vars['search'].'.inc.php';
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ function get_port_by_ifIndex($device_id, $ifIndex)
|
|||||||
return dbFetchRow("SELECT * FROM `ports` WHERE `device_id` = ? AND `ifIndex` = ?", array($device_id, $ifIndex));
|
return dbFetchRow("SELECT * FROM `ports` WHERE `device_id` = ? AND `ifIndex` = ?", array($device_id, $ifIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_all_devices($device, $type = "")
|
function get_all_devices()
|
||||||
{
|
{
|
||||||
global $cache;
|
global $cache;
|
||||||
$devices = array();
|
$devices = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user