[Vtigercrm-commits] [vtiger-commits] r4704 - /vtigercrm/trunk/modules/Products/Product.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 29 09:10:32 EST 2006
Author: don
Date: Wed Mar 29 07:10:28 2006
New Revision: 4704
Log:
Duplicate code removed
Modified:
vtigercrm/trunk/modules/Products/Product.php
Modified: vtigercrm/trunk/modules/Products/Product.php
==============================================================================
--- vtigercrm/trunk/modules/Products/Product.php (original)
+++ vtigercrm/trunk/modules/Products/Product.php Wed Mar 29 07:10:28 2006
@@ -265,28 +265,10 @@
}
-
- //check if the custom table exists or not in the first place
- function checkIfCustomTableExists()
- {
- $result = $this->db->query("select * from productcf");
- $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('productcf'))
{
$query = $this->constructCustomQueryAddendum() .
More information about the vtigercrm-commits
mailing list