mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Correct code to match code standards
This commit is contained in:
@@ -37,19 +37,15 @@ else {
|
||||
);
|
||||
}//end if
|
||||
|
||||
if($_SESSION['screen_width'])
|
||||
{
|
||||
if($_SESSION['screen_width'] >= 800)
|
||||
{
|
||||
if($_SESSION['screen_width']) {
|
||||
if($_SESSION['screen_width'] >= 800) {
|
||||
$graph_array['width'] = ($_SESSION['screen_width'] - 400 )/count($periods)+1;
|
||||
}else
|
||||
{
|
||||
}else {
|
||||
$graph_array['width'] = $_SESSION['screen_width'] - 155;
|
||||
}
|
||||
}
|
||||
|
||||
if($_SESSION['screen_height'])
|
||||
{
|
||||
if($_SESSION['screen_height']) {
|
||||
$graph_array['height'] = ($_SESSION['screen_height'] - 250)/4;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user