Index: trunk/psModules/src/camera/pmHDU.c
===================================================================
--- trunk/psModules/src/camera/pmHDU.c	(revision 7718)
+++ trunk/psModules/src/camera/pmHDU.c	(revision 7719)
@@ -170,5 +170,5 @@
     // Preserve the extension name, if it's the PHU
     char *extname = hdu->extname;       // The name of the extension
-    if (strcasecmp(extname, "PHU") == 0 && hdu->header) {
+    if (!extname && hdu->header) {
         bool mdok = true;               // Status of MD lookup
         extname = psMetadataLookupStr(&mdok, hdu->header, "EXTNAME");
