[fix] Silence another PHP8 deprecation warning.

master
Solomon Peachy 2023-05-20 19:59:30 -04:00
parent 2c258cdddf
commit 6bd62a7c15
1 changed files with 3 additions and 1 deletions

View File

@ -871,7 +871,9 @@ function display_photo_slides($display_type, $container_id, $photo_data, $offset
$photo = $photo_data[$offset + $cell_counter];
if ($photo == FALSE) break;
$photo['date_of_exposure'] = substr($photo['date_of_exposure'], 0, 10);
if (isset($photo['date_of_exposure'])) {
$photo['date_of_exposure'] = substr($photo['date_of_exposure'], 0, 10);
}
$photo['date_added'] = substr($photo['date_added'], 0, 10);
if ($photo['location'] == 'Unknown') {