[Vtigercrm-developers] [vtiger-commits] r3878 - /vtigercrm/branches/4.2/modules/Settings/ComboFieldList.php
vtiger-commits at vtiger.fosslabs.com
vtiger-commits at vtiger.fosslabs.com
Tue Feb 21 19:02:57 PST 2006
Author: mfedyk
Date: Tue Feb 21 20:02:55 2006
New Revision: 3878
Log:
fix direct calls to mysql functions, by mjsdev. fixes #16
Modified:
vtigercrm/branches/4.2/modules/Settings/ComboFieldList.php
Modified: vtigercrm/branches/4.2/modules/Settings/ComboFieldList.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Settings/ComboFieldList.php (original)
+++ vtigercrm/branches/4.2/modules/Settings/ComboFieldList.php Tue Feb 21 20:02:55 2006
@@ -219,13 +219,13 @@
$user_fld = Array();
$query = "select * from field where generatedtype=2 and tabid=".fetchTabIDVal($fld_module)." and uitype IN (15,16)";
// echo $query;
- $result = mysql_query($query);
- $noofrows = mysql_num_rows($result);
+ $result = $adb->query($query);
+ $noofrows = $adb->getRowCount($result);
if($noofrows > 0)
{
for($i=0; $i<$noofrows; $i++)
{
- $user_fld[mysql_result($result,$i,"fieldlabel")] = mysql_result($result,$i,"columnname");
+ $user_fld[$adb->query_result($result,$i,"fieldlabel")] = $adb->query_result($result,$i,"columnname");
}
}
return $user_fld;
More information about the vtigercrm-developers
mailing list