diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 910acbf58b..f5d232ee81 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-04-18 Sergio Martin + + * include/graphs/functions_pchart.php + include/graphs/fgraph.php: Clean code + 2011-04-16 Junichi Satoh * godmode/admin_access_logs.php: Fixed filter parameters are not diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index 8535188060..64a1c16a3f 100755 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -10,7 +10,6 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. - // If is called from index if(file_exists('include/functions.php')) { include_once('include/functions.php'); diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php index 2e0428b3a9..13bf1d4fe1 100755 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -60,17 +60,15 @@ if (!isset($graph)) { $data = $graph['data']; $width = $graph['width']; $height = $graph['height']; -$colors = null; -if (isset($graph['color'])) +if (isset($graph['color'])) { $colors = $graph['color']; -$legend = null; -if (isset($graph['legend'])) +} +if (isset($graph['legend'])) { $legend = $graph['legend']; -$xaxisname = ''; +} if(isset($graph['xaxisname'])) { $xaxisname = $graph['xaxisname']; } -$yaxisname = ''; if(isset($graph['yaxisname'])) { $yaxisname = $graph['yaxisname']; }