X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fdb%2Fitems_codes_db.inc;h=8eb3c76bff61e3911d14e3e40ea6fce96b298c6f;hb=b6ae2ddcd0cbc571edd01157ca1c8d44bbe071ef;hp=5b29bf247420b08b51d829db1c22fb184ca2aa87;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/inventory/includes/db/items_codes_db.inc b/inventory/includes/db/items_codes_db.inc index 5b29bf24..8eb3c76b 100644 --- a/inventory/includes/db/items_codes_db.inc +++ b/inventory/includes/db/items_codes_db.inc @@ -113,7 +113,7 @@ function get_item_code_dflts($stock_id) function check_item_in_kit($old_id, $kit_code, $item_code, $recurse=false) { $result = get_item_kit($kit_code); - if ($result != 0) + if ($result) { while ($myrow = db_fetch($result)) {