fix: move loadCustomerEmails to module scope, wire into switchCTab, add emails to tab loop; drop redundant ?: [] in customer-emails.php

This commit is contained in:
2026-06-23 16:35:11 +00:00
parent 145397ab81
commit 06260ed192
2 changed files with 40 additions and 39 deletions
+1 -1
View File
@@ -24,4 +24,4 @@ $emails = db()->fetchAll(
['cid' => $customerId]
);
echo json_encode(['emails' => $emails ?: []]);
echo json_encode(['emails' => $emails]);