Fixed wrong date in album view when takestamp is null

This commit is contained in:
Tobias Reich 2014-07-19 00:06:45 +02:00
parent 3e523c6e0f
commit 55b900686c

View File

@ -99,7 +99,7 @@ class Album extends Module {
$photo['nextPhoto'] = '';
$photo['thumbUrl'] = LYCHEE_URL_UPLOADS_THUMB . $photo['thumbUrl'];
if ($photo['takestamp']!=='0') {
if (isset($photo['takestamp'])&&$photo['takestamp']!=='0') {
$photo['cameraDate'] = 1;
$photo['sysdate'] = date('d F Y', $photo['takestamp']);
}