Problem with Slide Show, PHP code warning
Posted: Mon Jan 01, 2024 8:22 pm
I am using WWB v. 18.4.0
Slide Show - Type: lightbox gallery Lightbox: fancybox
Datasource: Get images from a folder on the server
The image-files has no exif-data, so i get a PHP-warning: Warning: Undefined array key "ImageDescription"
and output to the page stops.
In the php-file i see:
and i wants to change i to:
to prevent the warning.
How can i do this without manual edit after each time i upload ?
Slide Show - Type: lightbox gallery Lightbox: fancybox
Datasource: Get images from a folder on the server
The image-files has no exif-data, so i get a PHP-warning: Warning: Undefined array key "ImageDescription"
and output to the page stops.
In the php-file i see:
Code: Select all
$title = trim($exif['ImageDescription']);Code: Select all
$title = trim(isset($exif['ImageDescription']) ? $exif['ImageDescription'] : ''); How can i do this without manual edit after each time i upload ?