mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Fix coding style part 2
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
|
||||
foreach ($vars as $var => $value) {
|
||||
if ($value != '') {
|
||||
switch ($var)
|
||||
{
|
||||
switch ($var) {
|
||||
case 'name':
|
||||
$where .= " AND `$var` = ?";
|
||||
$param[] = $value;
|
||||
@@ -26,8 +25,7 @@ foreach (dbFetchRows("SELECT * FROM `packages` WHERE 1 $where GROUP BY `name`",
|
||||
foreach ($entry['blah'] as $version => $bleu) {
|
||||
$content = '<div style="width: 800px;">';
|
||||
|
||||
foreach ($bleu as $build => $bloo)
|
||||
{
|
||||
foreach ($bleu as $build => $bloo) {
|
||||
if ($build) {
|
||||
$dbuild = '-'.$build;
|
||||
}
|
||||
@@ -36,8 +34,7 @@ foreach (dbFetchRows("SELECT * FROM `packages` WHERE 1 $where GROUP BY `name`",
|
||||
}
|
||||
|
||||
$content .= '<div style="background-color: #eeeeee; margin: 5px;"><span style="font-weight: bold; ">'.$version.$dbuild.'</span>';
|
||||
foreach ($bloo as $device_id => $no)
|
||||
{
|
||||
foreach ($bloo as $device_id => $no) {
|
||||
$this_device = device_by_id_cache($device_id);
|
||||
$content .= '<span style="background-color: #f5f5f5; margin: 5px;">'.$this_device['hostname'].'</span> ';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user