Skip to content

Fixed a small bug#133

Open
alejandroliu wants to merge 1 commit into
sebsauvage:masterfrom
iliu-net:small-bugfix
Open

Fixed a small bug#133
alejandroliu wants to merge 1 commit into
sebsauvage:masterfrom
iliu-net:small-bugfix

Conversation

@alejandroliu
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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
Copy link
Copy Markdown

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

Thank you, it worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants