Page 1 of 1

Problem with Slide Show, PHP code warning

Posted: Mon Jan 01, 2024 8:22 pm
by evi
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:

Code: Select all

$title = trim($exif['ImageDescription']);
and i wants to change i to:

Code: Select all

$title = trim(isset($exif['ImageDescription']) ? $exif['ImageDescription'] : ''); 
to prevent the warning.
How can i do this without manual edit after each time i upload ?

Re: Problem with Slide Show, PHP code warning

Posted: Mon Jan 01, 2024 8:47 pm
by Pablo
There is currently no option to change this directly in the software.
But I will consider this for future development.