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

Fix an error with empty galleries. #9

Merged
merged 3 commits into from
Jun 18, 2012
Merged

Fix an error with empty galleries. #9

merged 3 commits into from
Jun 18, 2012

Conversation

madbonkey
Copy link
Contributor

The + operand produces a fatal error with an empty $thumbnails array. Added a quick fix.

The + operand produces a fatal error with an empty $thumbnails array. Added a quick fix.
@ccschmitz
Copy link

@NicolasSchneider You need to update the spacing on your conditionals still.

if( empty($thumbnails) )

needs to be:

if (empty($thumbnails))

… although the necessity is unclear to me, a few lines down the spacing
is done the other way again.
jerel added a commit that referenced this pull request Jun 18, 2012
Fix an operand error with empty galleries.
@jerel jerel merged commit efb8bb5 into pyrocms:2.1/master Jun 18, 2012
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