Fixed wrong date in album view when takestamp is null
This commit is contained in:
parent
3e523c6e0f
commit
55b900686c
@ -99,7 +99,7 @@ class Album extends Module {
|
|||||||
$photo['nextPhoto'] = '';
|
$photo['nextPhoto'] = '';
|
||||||
$photo['thumbUrl'] = LYCHEE_URL_UPLOADS_THUMB . $photo['thumbUrl'];
|
$photo['thumbUrl'] = LYCHEE_URL_UPLOADS_THUMB . $photo['thumbUrl'];
|
||||||
|
|
||||||
if ($photo['takestamp']!=='0') {
|
if (isset($photo['takestamp'])&&$photo['takestamp']!=='0') {
|
||||||
$photo['cameraDate'] = 1;
|
$photo['cameraDate'] = 1;
|
||||||
$photo['sysdate'] = date('d F Y', $photo['takestamp']);
|
$photo['sysdate'] = date('d F Y', $photo['takestamp']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user