mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Resolved critical bugs from scrutinizer
This commit is contained in:
@@ -170,7 +170,7 @@
|
||||
|
||||
// Transfer overview
|
||||
function transferOverview($bill_id, $history) {
|
||||
global $list_colour_a, $list_colour_b, $config['billing']['base'];
|
||||
global $list_colour_a, $list_colour_b, $config;
|
||||
|
||||
$i = 0;
|
||||
$tot = array();
|
||||
|
@@ -34,7 +34,7 @@ foreach (dbFetchRows("SELECT * FROM `devices` ORDER BY `hostname`") as $dev);
|
||||
|
||||
if ($updated) { print_message("Device Settings Saved"); }
|
||||
|
||||
if (dbFetchCell("SELECT COUNT(*) from `services` WHERE `device_id` = ?" array($device['device_id'])) > '0')
|
||||
if (dbFetchCell("SELECT COUNT(*) from `services` WHERE `device_id` = ?", array($device['device_id'])) > '0')
|
||||
{
|
||||
$i = "1";
|
||||
foreach (dbFetchRows("select * from services WHERE device_id = ? ORDER BY service_type", array($device['device_id'])) as $service)
|
||||
@@ -43,7 +43,7 @@ if (dbFetchCell("SELECT COUNT(*) from `services` WHERE `device_id` = ?" array($d
|
||||
}
|
||||
}
|
||||
|
||||
if($existform
|
||||
if($existform)
|
||||
{
|
||||
echo('<div style="float: left;">');
|
||||
echo("
|
||||
|
@@ -15,7 +15,7 @@ $sep = "";
|
||||
foreach ($menu_options as $option => $text)
|
||||
{
|
||||
if ($_GET['type'] == $option) { echo("<span class='pagemenu-selected'>"); }
|
||||
echo('<a href="'.generate_url($vars, array('type' => $option)).'">'.$text.'</a>')
|
||||
echo('<a href="'.generate_url($vars, array('type' => $option)).'">'.$text.'</a>');
|
||||
if ($_GET['type'] == $option) { echo("</span>"); }
|
||||
echo(" | ");
|
||||
}
|
||||
@@ -33,7 +33,7 @@ foreach ($graph_types as $type => $descr)
|
||||
echo("$type_sep");
|
||||
if ($_GET['opte'] == $type) { echo("<span class='pagemenu-selected'>"); }
|
||||
echo('<a href="device/device=' . $device['device_id'] . '/tab=routing/type=loadbalancer_vservers/graphs/'.$type.'/">'.$descr.'</a>');
|
||||
echo('<a href="'.generate_url($vars, array('type' => 'loadbalancer_ace_vservers')).'">'.$text.'</a>')
|
||||
echo('<a href="'.generate_url($vars, array('type' => 'loadbalancer_ace_vservers')).'">'.$text.'</a>');
|
||||
if ($_GET['opte'] == $type) { echo("</span>"); }
|
||||
|
||||
$type_sep = " | ";
|
||||
|
Reference in New Issue
Block a user