[Vtigercrm-commits] [vtiger-commits] r4792 - in /vtigercrm/trunk/include/utils: CommonUtils.php utils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 30 11:34:03 EST 2006
Author: saraj
Date: Thu Mar 30 09:33:58 2006
New Revision: 4792
Log:
condition added to check the file size in getTabModuleName,getTabid
Modified:
vtigercrm/trunk/include/utils/CommonUtils.php
vtigercrm/trunk/include/utils/utils.php
Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Thu Mar 30 09:33:58 2006
@@ -256,7 +256,7 @@
function getTabid($module)
{
- if (file_exists('tabdata.php'))
+ if (file_exists('tabdata.php') && (filesize('tabdata.php') != 0))
{
global $log;
$log->info("the file exists");
Modified: vtigercrm/trunk/include/utils/utils.php
==============================================================================
--- vtigercrm/trunk/include/utils/utils.php (original)
+++ vtigercrm/trunk/include/utils/utils.php Thu Mar 30 09:33:58 2006
@@ -742,7 +742,7 @@
function getTabModuleName($tabid)
{
- if (file_exists('tabdata.php'))
+ if (file_exists('tabdata.php') && (filesize('tabdata.php') != 0))
{
global $log;
$log->info("the file exists");
More information about the vtigercrm-commits
mailing list