diff options
author | Michal Čihař <mcihar@suse.cz> | 2011-07-22 11:10:37 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2011-07-22 11:10:37 +0400 |
commit | 219ec73d69a0bee94ac3bf98757db25360862b39 (patch) | |
tree | a45557d4d7faaa44cd9f916306cacd278e0a6c68 /tbl_chart.php | |
parent | 36298932e2a80bbd207b3b86475033f8b728a0b4 (diff) |
Spacing around if
Diffstat (limited to 'tbl_chart.php')
-rw-r--r-- | tbl_chart.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tbl_chart.php b/tbl_chart.php index 96befa7c70..b3589e3ede 100644 --- a/tbl_chart.php +++ b/tbl_chart.php @@ -94,13 +94,13 @@ url_query = '<?php echo $url_query;?>'; <input type="text" name="chartTitle" value="<?php echo __('Chart title'); ?>"> <?php $keys = array_keys($data[0]); $yaxis=-1; - if(count($keys)>1) { + if (count($keys)>1) { echo '<br>'; echo __('X-Axis:'); ?> <select name="chartXAxis"> <?php foreach ($keys as $idx=>$key) { - if($yaxis==-1 && ($idx==count($data[0])-1 || preg_match("/(date|time)/i",$key))) { + if ($yaxis==-1 && ($idx==count($data[0])-1 || preg_match("/(date|time)/i",$key))) { echo '<option value="'.$idx.'" selected>'.$key.'</option>'; $yaxis=$idx; } else { |