Merge pull request #10388 from hregis/9.0_bug

FIX JSON.parse not needeed and missing simple quote escaping
This commit is contained in:
Laurent Destailleur 2019-01-26 14:13:26 +01:00 committed by GitHub
commit c6fe94c455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
$categorie = new Categorie($db);
$categories = $categorie->get_full_arbo('product');
?>
var categories = JSON.parse( '<?php echo json_encode($categories);?>' );
var categories = <?php echo json_encode($categories); ?>;
var currentcat;
var pageproducts=0;
var pagecategories=0;