Skip to content
Permalink
Browse files

FIX JSON.parse not needeed and missing simple quote escaping

  • Loading branch information...
hregis committed Jan 21, 2019
1 parent 0cba7e1 commit 406f26b9d2a8c27904ac36be4c4b4ba2edd0b9be
Showing with 1 addition and 1 deletion.
  1. +1 −1 htdocs/takepos/takepos.php
@@ -58,7 +58,7 @@
$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, JSON_HEX_APOS); ?>;
var currentcat;
var pageproducts=0;
var pagecategories=0;

0 comments on commit 406f26b

Please sign in to comment.
You can’t perform that action at this time.