[PR #922] [MERGED] Fixed TypeError in ajax_imap_folder_display #1149

Closed
opened 2026-02-25 21:37:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/922
Author: @josaphatim
Created: 3/5/2024
Status: Merged
Merged: 3/7/2024
Merged by: @kroky

Base: masterHead: fixed-imap-servers-not-loaded


📝 Commits (1)

  • 4b00b89 Fixed TypeError in ajax_imap_folder_display

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 modules/imap/setup.php (+1 -1)

📄 Description

Fixed Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /path/to/vendor/jason-munro/cypht/lib/repository.php:79

Ajax page ajax_imap_folder_display called imap_message_list_type which uses Hm_IMAP_List class while placement of load_imap_servers_from_config was after it leading to have empty entites in Hm_Repository which can pass as second parameter of array_key_exists.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cypht-org/cypht/pull/922 **Author:** [@josaphatim](https://github.com/josaphatim) **Created:** 3/5/2024 **Status:** ✅ Merged **Merged:** 3/7/2024 **Merged by:** [@kroky](https://github.com/kroky) **Base:** `master` ← **Head:** `fixed-imap-servers-not-loaded` --- ### 📝 Commits (1) - [`4b00b89`](https://github.com/cypht-org/cypht/commit/4b00b89f533ece944acae675ec41b542f417ada4) Fixed TypeError in ajax_imap_folder_display ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `modules/imap/setup.php` (+1 -1) </details> ### 📄 Description Fixed Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /path/to/vendor/jason-munro/cypht/lib/repository.php:79 Ajax page ajax_imap_folder_display called imap_message_list_type which uses Hm_IMAP_List class while placement of load_imap_servers_from_config was after it leading to have empty entites in Hm_Repository which can pass as second parameter of array_key_exists. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:37:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#1149
No description provided.