Skip to content

Conversation

@IrAlfred
Copy link
Member

This PR addresses the following issues:

  • "Undefined array key 1" errors in GitHub "All" page (?page=message_list&list_path=github_all). The Individual repo pages are in the following format (?page=message_list&list_path=github_owner/repo). The issue arises when GitHub repositories are not in expected "owner/repo" format.
  • "Call to a member function search() on false" when no IMAP server is not configured. The fix allows GitHub module to work independently without IMAP setup

@IrAlfred IrAlfred force-pushed the fix-some-github-module-issues branch from fe26b5f to 6653bfa Compare October 12, 2025 19:25
@IrAlfred IrAlfred changed the title Fix some GitHub module issues fix(github): fix some GitHub module issues Oct 12, 2025
@IrAlfred IrAlfred changed the title fix(github): fix some GitHub module issues fix(other): fix some GitHub module issues Oct 12, 2025
@IrAlfred IrAlfred requested a review from kroky October 12, 2025 19:36
}

if (empty($ids)) {
return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method outputs some data which other modules expect to use. If you return early, that output data will not be available. What is the problem of ids being empty? The code that follows should just work and output some empty/default data.

foreach ($ids as $key => $id) {
$details = Hm_IMAP_List::dump($id);
$mailbox = Hm_IMAP_List::get_connected_mailbox($id, $this->cache);
if (!$mailbox) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like we are masking a deeper problem. Why would the mailbox be not present? If there is a problem connecting or something else, we should send feedback to the user, at least.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like we are masking a deeper problem. Why would the mailbox be not present? If there is a problem connecting or something else, we should send feedback to the user, at least.

Let me investigate more deeper about this !

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.

2 participants