Index: trunk/ippScripts/scripts/detrend_process_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 16561)
+++ trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 16563)
@@ -173,5 +173,5 @@
 
     carp($msg);
-    if ($det_id and $exp_id and $class_id and not $no_update) {
+    if (defined $det_id and defined $exp_id and defined $class_id and not $no_update) {
 	my $command = "$dettool -addprocessedimfile";
 	$command .= " -det_id $det_id";
