Index: trunk/ippTools/src/p2updatePending.c
===================================================================
--- trunk/ippTools/src/p2updatePending.c	(revision 6261)
+++ trunk/ippTools/src/p2updatePending.c	(revision 6336)
@@ -21,5 +21,5 @@
 	psMetadataAddS32 (where, PS_LIST_TAIL, "P2_VERSION", PS_META_REPLACE, "==", exposure->p2_version);
 	psArray *images = p2PendingImfileSelectRowObjects (config->database, where, MAX_ROWS);
-	if (images->n != exposure->nclass) {
+	if (images->n != exposure->imfiles) {
 	    // free things
 	    continue;
