Browse Source

Fixed wrong modified date of the photo files

Tobias Reich 9 years ago
parent
commit
47c60a4943
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/modules/Photo.php

+ 1 - 1
php/modules/Photo.php

@@ -161,7 +161,7 @@ class Photo extends Module {
 				}
 
 				# Set original date
-				if ($info['takestamp']!=='') @touch($path, $info['takestamp']);
+				if ($info['takestamp']!==''&&$info['takestamp']!==0) @touch($path, $info['takestamp']);
 
 				# Create Thumb
 				if (!$this->createThumb($path, $photo_name)) {