Changeset 2871820
- Timestamp:
- 02/27/2023 04:35:10 PM (3 years ago)
- Location:
- presta-products/trunk
- Files:
-
- 2 edited
-
presta-products.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
presta-products/trunk/presta-products.php
r2868282 r2871820 4 4 * Plugin URI: https://www.guillaume-bouaud.fr/produit/presta-products-for-wordpress 5 5 * Description: Affichage des produits Prestashop sur le site internet généré par Wordpress. 6 * Version: 1.1.1 66 * Version: 1.1.17 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.2 … … 412 412 // Vérification qu'il n'est pas déjà présent en base 413 413 $myTable = $wpdb->prefix.'ppgbo_cache'; 414 $sql = $wpdb->prepare("SELECT id FROM $myTable WHERE shortcode = '%s'", json_encode($params));414 $sql0 = $wpdb->prepare("SELECT id FROM $myTable WHERE shortcode = '%s'", json_encode($params)); 415 415 $elements = $wpdb->get_results($sql0); 416 416 … … 426 426 // Requête SQL d'ajout 427 427 $myTable = $wpdb->prefix.'ppgbo_cache'; 428 $sql = $wpdb->prepare("INSERT IGNORE INTO $myTable (shortcode, datas, products) VALUES ('%s', '%s', '%s')", json_encode($params), json_encode($datas), json_encode($products));429 $result = $wpdb->query($sql );428 $sql1 = $wpdb->prepare("INSERT IGNORE INTO $myTable (shortcode, datas, products) VALUES ('%s', '%s', '%s')", json_encode($params), json_encode($datas), json_encode($products)); 429 $result = $wpdb->query($sql1); 430 430 431 431 // Si problème d'enregistrement (false = problem, 0 peut être le nombre de lignes créées (ignore into)) -
presta-products/trunk/readme.txt
r2868282 r2871820 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.1 8 Stable tag: 1.1.1 68 Stable tag: 1.1.17 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 63 63 64 64 == Changelog == 65 66 = 1.1.17 = (27/02/2023) 67 * Fixed: Correctif à l'enregistrement du cache (PREMIUM) 65 68 66 69 = 1.1.16 = (20/02/2023)
Note: See TracChangeset
for help on using the changeset viewer.