Correct code to match code standards

This commit is contained in:
Louis Bailleul
2015-11-20 12:02:51 +00:00
parent bafdeaf9ee
commit 4731e8621b
3 changed files with 18 additions and 23 deletions

View File

@@ -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;
}