Fix error when no category selected

empty pages when searching with no category of producted selected
This commit is contained in:
ptibogxiv 2023-01-03 19:46:05 +01:00 committed by GitHub
parent deb110d556
commit 70f9e7881b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,7 @@ if ($modecompta == 'CREANCES-DETTES') {
}
if ($selected_cat === -2) { // Without any category
$sql .= " AND cp.fk_product is null";
} elseif ($selected_cat) { // Into a specific category
} elseif ($selected_cat > 0) { // Into a specific category
if ($subcat) {
$TListOfCats = $categorie->get_full_arbo('product', $selected_cat, 1);