Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #326 from masato-igarashi/master
Browse files Browse the repository at this point in the history
fix issue #320
  • Loading branch information
hyyan committed Apr 16, 2018
2 parents 8113f35 + 2b3c897 commit e3a8db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hyyan/WPI/Product/Variation.php
Expand Up @@ -115,7 +115,7 @@ public static function getRelatedVariation($variatonID, $returnIDS = false)
//on translations when processing new order
//it also did not return all versions of post for deletion
global $wpdb;
$postids=$wpdb->get_col("select post_id from wp_postmeta where meta_key='" .
$postids=$wpdb->get_col("select post_id from " . $wpdb->postmeta . " where meta_key='" .
self::DUPLICATE_KEY . "' and meta_value=" . $variatonID);

if (true === $returnIDS) {
Expand Down

0 comments on commit e3a8db6

Please sign in to comment.