Index: uc_product_kit.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ubercart/uc_product_kit/uc_product_kit.module,v
retrieving revision 1.11.2.2
diff -u -r1.11.2.2 uc_product_kit.module
--- uc_product_kit.module	14 Aug 2008 21:08:48 -0000	1.11.2.2
+++ uc_product_kit.module	28 Aug 2008 21:57:38 -0000
@@ -610,8 +610,8 @@
 
 function uc_product_kit_store_status() {
   if (module_exists('imagefield')) {
-    $result = db_query("SELECT field_name FROM {node_field_instance} WHERE field_name = 'field_image_cache' AND widget_type = 'image' AND type_name = 'product_kit'");
-    if (!db_num_rows($result)) {
+    $result = db_result(db_query("SELECT COUNT(field_name) FROM {content_node_field_instance} WHERE field_name = 'field_image_cache' AND widget_type = 'filefield_widget' AND type_name = 'product_kit'"));
+    if (!$result) {
       return array(array('status' => 'ok', 'title' => t('Images'), 'desc' => t('Product kits do not have an image field. You may add the existing <em>field_image_cache</em> at the <a href="!url">Add field page</a>.', array('!url' => url('admin/content/types/product-kit/add_field')))));
     }
   }

