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 preg_match() and preg_replace() null error on empty album descriptions #18

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

Conversation

yattaro
Copy link

@yattaro yattaro commented Feb 12, 2025

Similar to the issue resolved in f314292, the function get_user_language_desc in events.inc.php raises deprecation warnings when calling preg_match() and preg_replace() if the description of an album is empty, as the description passed into the function is null. This PR adds a check to get_user_language_desc similar to the other functions that replaces the value of $desc with an empty string if it is null. This fix is tested working at https://photos.bnuuy.xyz/index.php?/category/9.

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.

1 participant