[Vtigercrm-commits] [vtiger-commits] r5343 - /vtigercrm/trunk/include/utils/GraphUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 25 07:51:55 EDT 2006
Author: richie
Date: Tue Apr 25 05:51:50 2006
New Revision: 5343
Log:
Zero check added.
Fixes #266
Modified:
vtigercrm/trunk/include/utils/GraphUtils.php
Modified: vtigercrm/trunk/include/utils/GraphUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/GraphUtils.php (original)
+++ vtigercrm/trunk/include/utils/GraphUtils.php Tue Apr 25 05:51:50 2006
@@ -92,6 +92,12 @@
// normalize $max to get value between 1 and 10
$coef = pow(10,floor(log10($max)));
+ if($coef == 0)
+ {
+ $data=0;
+ echo "<h3> No data available with the specified time period</h3>";
+ return $data;
+ }
$normalized = $max / $coef;
if($normalized < 1.5){
More information about the vtigercrm-commits
mailing list