[vtiger-commits] r3878 - /vtigercrm/branches/4.2/modules/Settings/ComboFieldList.php

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[vtiger-commits] r3878 - /vtigercrm/branches/4.2/modules/Settings/ComboFieldList.php

vtiger-commits-2
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;


_______________________________________________
This vtiger.com email is sponsored by: Zoho Writer. Are you still using your desktop word processor for typing documents? Try the AJAX enabled, collaboration-friendly online word processor, Zoho Writer for FREE instead!
http://zohowriter.com/?vt