small fix for leads with no custom fields
git-svn-id: svn://192.168.202.10@2869 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -12744,6 +12744,8 @@ if ($ACTION == 'updateDISPO')
|
||||
|
||||
|
||||
##### BEGIN grab the data from custom table for the lead_id
|
||||
if ($entry_list_id > 0)
|
||||
{
|
||||
$stmt="SELECT $custom_field_names_SQL FROM custom_$entry_list_id where lead_id='$lead_id' LIMIT 1;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00345',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -12781,6 +12783,7 @@ if ($ACTION == 'updateDISPO')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$stmt="UPDATE vicidial_log_extended set dispo_url_processed='Y' where uniqueid='$uniqueid';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
|
||||
Reference in New Issue
Block a user