2011-04-18 Sergio Martin <sergio.martin@artica.es>

* include/graphs/functions_pchart.php
	include/graphs/fgraph.php: Clean code



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4233 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-04-18 08:18:37 +00:00
parent 762402cf63
commit 2f16fc02ca
3 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2011-04-18 Sergio Martin <sergio.martin@artica.es>
* include/graphs/functions_pchart.php
include/graphs/fgraph.php: Clean code
2011-04-16 Junichi Satoh <junichi@rworks.jp> 2011-04-16 Junichi Satoh <junichi@rworks.jp>
* godmode/admin_access_logs.php: Fixed filter parameters are not * godmode/admin_access_logs.php: Fixed filter parameters are not

View File

@ -10,7 +10,6 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// If is called from index // If is called from index
if(file_exists('include/functions.php')) { if(file_exists('include/functions.php')) {
include_once('include/functions.php'); include_once('include/functions.php');

View File

@ -60,17 +60,15 @@ if (!isset($graph)) {
$data = $graph['data']; $data = $graph['data'];
$width = $graph['width']; $width = $graph['width'];
$height = $graph['height']; $height = $graph['height'];
$colors = null; if (isset($graph['color'])) {
if (isset($graph['color']))
$colors = $graph['color']; $colors = $graph['color'];
$legend = null; }
if (isset($graph['legend'])) if (isset($graph['legend'])) {
$legend = $graph['legend']; $legend = $graph['legend'];
$xaxisname = ''; }
if(isset($graph['xaxisname'])) { if(isset($graph['xaxisname'])) {
$xaxisname = $graph['xaxisname']; $xaxisname = $graph['xaxisname'];
} }
$yaxisname = '';
if(isset($graph['yaxisname'])) { if(isset($graph['yaxisname'])) {
$yaxisname = $graph['yaxisname']; $yaxisname = $graph['yaxisname'];
} }