[Vtigercrm-commits] [vtiger-commits] r4705 - /vtigercrm/trunk/modules/Leads/Lead.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 29 09:12:09 EST 2006
Author: don
Date: Wed Mar 29 07:12:05 2006
New Revision: 4705
Log:
Duplicate code removed
Modified:
vtigercrm/trunk/modules/Leads/Lead.php
Modified: vtigercrm/trunk/modules/Leads/Lead.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/Lead.php (original)
+++ vtigercrm/trunk/modules/Leads/Lead.php Wed Mar 29 07:12:05 2006
@@ -183,26 +183,12 @@
}
-//check if the custom table exists or not in the first place
-function checkIfCustomTableExists()
-{
- $result = $this->db->query("select * from leadscf");
- $testrow = $this->db->num_fields($result);
- if($testrow > 1)
- {
- $exists=true;
- }
- else
- {
- $exists=false;
- }
-return $exists;
-}
+
function create_export_query(&$order_by, &$where)
{
- if($this->checkIfCustomTableExists())
+ if($this->checkIfCustomTableExists('leadscf'))
{
$query = $this->constructCustomQueryAddendum() . "
More information about the vtigercrm-commits
mailing list