Plugin Directory

Changeset 1154345


Ignore:
Timestamp:
05/06/2015 07:20:29 AM (11 years ago)
Author:
2kblater.com
Message:

getProductsAsinsToUpdate fix where

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2kb-amazon-affiliates-store/trunk/KbAmazonStore.php

    r1154110 r1154345  
    14181418            $where .= " AND t1.meta_value NOT IN('".implode("','", $notAsins)."') ";
    14191419        }
    1420         // WHERE t.post_modified < '".date('Y-m-d H:i:s', $time)."'
    1421         // @TODO
     1420       
    14221421        $sql = "
    14231422           SELECT t1.meta_value AS asin
    14241423           FROM $wpdb->posts AS t
    14251424           JOIN $wpdb->postmeta AS t1 ON t.ID = t1.post_id AND t1.meta_key = 'KbAmzASIN'
    1426            $where
     1425           WHERE t.post_modified < '".date('Y-m-d H:i:s', $time)."'
    14271426           ORDER BY t.post_modified ASC
    14281427           $sqlLimit
Note: See TracChangeset for help on using the changeset viewer.