[Vtigercrm-commits] [vtiger-commits] r4412 - /vtigercrm/trunk/modules/Products/EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Mar 24 02:48:16 EST 2006
Author: saraj
Date: Fri Mar 24 00:48:08 2006
New Revision: 4412
Log:
* Added check whether the focus object has id or not to avoid the error
Modified:
vtigercrm/trunk/modules/Products/EditView.php
Modified: vtigercrm/trunk/modules/Products/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Products/EditView.php (original)
+++ vtigercrm/trunk/modules/Products/EditView.php Fri Mar 24 00:48:08 2006
@@ -94,7 +94,8 @@
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
-$smarty->assign("ROWCOUNT", getImageCount($focus->id));
+if($focus->id != '')
+ $smarty->assign("ROWCOUNT", getImageCount($focus->id));
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
else $smarty->assign("NAME", "");
More information about the vtigercrm-commits
mailing list