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:
mattf
2017-12-04 22:49:59 +00:00
parent 93da2d786c
commit 871803ea5a
+3
View File
@@ -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";}