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