[fix] Silence another PHP8 deprecation warning.
parent
2c258cdddf
commit
6bd62a7c15
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue