Index: exif.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/exif/exif.module,v
retrieving revision 1.9.2.6
diff -u -p -r1.9.2.6 exif.module
--- exif.module	13 Apr 2009 11:57:49 -0000	1.9.2.6
+++ exif.module	9 Jun 2009 02:06:03 -0000
@@ -102,13 +102,18 @@ function exif_nodeapi(&$node, $op, $a3 =
 					//incase we get a datefield, we need to reformat it to the ISO 8601 standard:
 					//which will look something like 2004-02-12T15:19:21
 					if(in_array($key,$date_array)){
-						$date_time = explode(" ",$value);
-						$date_time[0] = str_replace(":","-",$date_time[0]);
-						if(variable_get('exif_granularity',0) == 1){
-							$date_time[1] = "00:00:00";
+						if (! empty($value)) {
+							$date_time = explode(" ",$value);
+							$date_time[0] = str_replace(":","-",$date_time[0]);
+							if(variable_get('exif_granularity',0) == 1){
+								$date_time[1] = "00:00:00";
+							}
+							$value = implode("T",$date_time);
+							//dsm($value,$key);
+						}
+						else {
+							$value = NULL;
 						}
-						$value = implode("T",$date_time);
-						//dsm($value,$key);
 					}
 					$tmp[0]['value'] = $value;
 					
