sebsauvage / MinigalNano

GNU Affero General Public License v3.0
161 stars 50 forks source link

Fixed a small bug #133

Open alejandroliu opened 2 years ago

alejandroliu commented 2 years ago

Fixes a bug when "EXIF" data should be displayed but the image itself does not contain EXIF data.

In that situation, the word "Array" is displayed for the image EXIF data.

SuperMotzer commented 2 years ago

Hello,

Here the correction in index.php. Just replace the space by nothing:

function readEXIF($file) { $exif_arr = array(); $exif_arr[]=""; $exif_data = exif_read_data($file);

blogdemoi commented 1 year ago

Here the correction in index.php. Just replace the space by nothing:

function readEXIF($file) { $exif_arr = array(); $exif_arr[]=""; $exif_data = exif_read_data($file);

Thank you for this, it partially works. "Array" is not displayed anymore, however when the mouse hovers on the thumbnail in a gallery, :: appears instead, after the picture name:

B62RXJs

SuperMotzer commented 1 year ago

Hi :) Then look for a return "::".implode and just delete the :: So you should have return "" . implode(" ", $exif_arr);

Sorry, I made so many modifications and improvements with time. I don't remember all the modifications associated with one single mistake.

blogdemoi commented 1 year ago

Then look for a return "::".implode and just delete the :: So you should have return "" . implode(" ", $exif_arr);

Thank you, it worked perfectly.