fix bg-script

This commit is contained in:
Claudio 2024-10-14 16:05:03 +02:00
parent d83f4e0e34
commit ac8f633c40

View File

@ -329,7 +329,7 @@ foreach ($arr_total_products as $product) {
$compound_data = $compound_query->Results;
$ref_id = 0;
if (count($compound_data) > 0 && !empty($trim_cas_val) && $trim_cas_val != "-" && $trim_cas_val != "") {
if (count($analysis_data) > 0 && $trim_cas_val != "" && $trim_cas_val != "-") {
$ref_id = $compound_data[0]['idcompoundsvocabulary'];
} else {