The SQL query in_uc_product_keys_db_assign_keys currently looks like this:

  $result =
    db_query(
      "SELECT * FROM {uc_product_keys} WHERE pksid = %s AND status = %d LIMIT %d",
      $product->pksid, UC_PRODUCT_KEYS_STATUS_UNASSIGNED, $order_product->qty);

The pksid is an integer field, so WHERE pksid=%d would be correct here.

Comments

freixas’s picture

Assigned: Unassigned » freixas

Sounds good.

Change checked in.

gabor_h’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.