Index: /trunk/psphot/src/psphotArguments.c
===================================================================
--- /trunk/psphot/src/psphotArguments.c	(revision 5122)
+++ /trunk/psphot/src/psphotArguments.c	(revision 5123)
@@ -69,5 +69,7 @@
   if (photcode != NULL) {
     psMetadataAdd (config, PS_LIST_HEAD, "PHOTCODE", mode, "", photcode);
-  }
+  } else {
+    psMetadataAdd (config, PS_LIST_HEAD, "PHOTCODE", mode, "", "NONE");
+  }    
   return (config);
 }
