Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a small bug #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

alejandroliu
Copy link

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

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

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

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

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