[Vtigercrm-commits] [vtiger-commits] r10887 - /vtigercrm/branches/5.0.3/modules/Contacts/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sun May 13 02:12:25 EDT 2007
Author: richie
Date: Sun May 13 00:12:19 2007
New Revision: 10887
Log:
* Added condition to avoid query error in contact creation
Modified:
vtigercrm/branches/5.0.3/modules/Contacts/Save.php
Modified: vtigercrm/branches/5.0.3/modules/Contacts/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Contacts/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/Contacts/Save.php Sun May 13 00:12:19 2007
@@ -98,7 +98,7 @@
{
$focus->column_fields['imagename'] = $_FILES['imagename']['name'];
}
-else
+elseif($focus->id != '')
{
$result = $adb->query("select imagename from vtiger_contactdetails where contactid = ".$focus->id);
$focus->column_fields['imagename'] = $adb->query_result($result,0,'imagename');
More information about the vtigercrm-commits
mailing list