mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[PR #869] [MERGED] Fix ldap_contacts error running under php8.2 & remove unused and correct ldap .env variable #1105
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#1105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cypht-org/cypht/pull/869
Author: @Shadow243
Created: 1/16/2024
Status: ✅ Merged
Merged: 1/31/2024
Merged by: @kroky
Base:
master← Head:ldap-contact-error-with-php82📝 Commits (1)
8a8a3e5Fix ldap_contacts error running under php8.2 & remove unused and correct ldap .env variable📊 Changes
3 files changed (+62 additions, -60 deletions)
View changed files
📝
.env.example(+9 -6)📝
config/carddav.php(+4 -2)📝
config/ldap.php(+49 -52)📄 Description
Issue: Resolve Array Key Exists Error in Cypht with PHP 8.2
Problem Description:
Under the PHP 8.2 environment in Cypht, an error is encountered in the ldap_contacts module, specifically on line 320. The error is related to
array_key_exists()where a string is given instead of an array. Notably, this error is not displayed under PHP 7.4. The issue occurs on pages such as settings and compose, leading to an error page.Steps to Reproduce:
array_key_exists()on line 320 in the ldap_contacts module.Proposed Changes:
Code Modification:
array_key_exists()error in the ldap_contacts module under PHP 8.2.Cleanup:
.env.examplefile..env.exampleaccording toconfig/ldap.phpfile.Additional Information:
Environment:
Steps to Test:
Related Issues:
N/A
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.