fix if statement style

This commit is contained in:
wiad
2016-01-19 10:59:13 +01:00
parent 086443b77a
commit 913314f831
4 changed files with 8 additions and 4 deletions

View File

@@ -33,7 +33,8 @@ foreach ($stats as $stat => $color) {
# Set up area graphing with stacking
if ( $i == "0" ) {
$rrd_options .= " 'AREA:cdef".$stat . $color.":".ucfirst($stat)."'";
} else {
}
else {
$rrd_options .= " 'AREA:cdef".$stat . $color.":".ucfirst($stat).":STACK'";
}

View File

@@ -28,7 +28,8 @@ foreach ($stats as $stat => $color) {
# Set up area graphing with stacking
if ( $i == "0" ) {
$rrd_options .= " 'AREA:cdef".$stat . $color.":".$stat."'";
} else {
}
else {
$rrd_options .= " 'AREA:cdef".$stat . $color.":".$stat.":STACK'";
}

View File

@@ -25,7 +25,8 @@ foreach ($stats as $stat => $color) {
# Set up area graphing with stacking
if ( $i == "0" ) {
$rrd_options .= " 'AREA:".$stat . $color.":".$stat."'";
} else {
}
else {
$rrd_options .= " 'AREA:".$stat . $color.":".$stat.":STACK'";
}

View File

@@ -28,7 +28,8 @@ foreach ($stats as $stat => $color) {
# Set up area graphing with stacking
if ( $i == "0" ) {
$rrd_options .= " 'AREA:cdef".$stat . $color.":".ucfirst($stat)."'";
} else {
}
else {
$rrd_options .= " 'AREA:cdef".$stat . $color.":".ucfirst($stat).":STACK'";
}