[Vtigercrm-commits] [vtiger-commits] r6446 - /vtigercrm/trunk/include/utils/CommonUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri May 26 03:13:25 EDT 2006
Author: don
Date: Fri May 26 01:13:21 2006
New Revision: 6446
Log:
fixed the issue in quick create security implementation
Modified:
vtigercrm/trunk/include/utils/CommonUtils.php
Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Fri May 26 01:13:21 2006
@@ -1657,7 +1657,7 @@
$qc_query = "select distinct tab.tablabel,tab.name from field inner join tab on tab.tabid = field.tabid where quickcreate=0 order by tab.tablabel";
$result = $adb->query($qc_query);
$noofrows = $adb->num_rows($result);
-$qcmodule_array = Array();
+$return_qcmodule = Array();
for($i = 0; $i < $noofrows; $i++)
{
$tablabel = $adb->query_result($result,$i,'tablabel');
@@ -1670,7 +1670,11 @@
$return_qcmodule[] = $tabname;
}
}
- $return_qcmodule = array_chunk($return_qcmodule,2);
+ if(sizeof($return_qcmodule >0))
+ {
+ $return_qcmodule = array_chunk($return_qcmodule,2);
+ }
+
$log->debug("Exiting getQuickCreateModules method ...");
return $return_qcmodule;
}
More information about the vtigercrm-commits
mailing list