[Vtigercrm-commits] [vtiger-commits] r5926 - /vtigercrm/trunk/modules/Leads/ListViewTop.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri May 12 07:46:51 EDT 2006
Author: saraj
Date: Fri May 12 05:46:48 2006
New Revision: 5926
Log:
Issue fixed - My New Leads in Homepage will not be displayed with empty values- Ahmed
Modified:
vtigercrm/trunk/modules/Leads/ListViewTop.php
Modified: vtigercrm/trunk/modules/Leads/ListViewTop.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/ListViewTop.php (original)
+++ vtigercrm/trunk/modules/Leads/ListViewTop.php Fri May 12 05:46:48 2006
@@ -71,7 +71,7 @@
$list_result = $adb->query($list_query);
$noofrows = $adb->num_rows($list_result);
$open_lead_list =array();
- if (count($list_result)>0)
+ if ($noofrows > 0)
for($i=0;$i<$noofrows,$i<5;$i++)
{
$open_lead_list[] = Array('leadname' => $adb->query_result($list_result,$i,'firstname').' '.$adb->query_result($list_result,$i,'lastname'),
@@ -122,6 +122,7 @@
}
$values=Array('Title'=>$title,'Header'=>$header,'Entries'=>$entries);
$log->debug("Exiting getNewLeads method ...");
+ if (($display_empty_home_blocks && count($entries) == 0 ) || (count($entries)>0))
return $values;
}
function getLeadView($lead_view)
More information about the vtigercrm-commits
mailing list