From 25b089c1a930e41e0d4029aad3fde531e21717e1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 17 Nov 2024 16:17:05 +0100 Subject: fix some errors detected by phpstan --- include/xchan.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/xchan.php') diff --git a/include/xchan.php b/include/xchan.php index b8677c8c4..c492a77dc 100644 --- a/include/xchan.php +++ b/include/xchan.php @@ -217,6 +217,10 @@ function xchan_keychange_acl($table,$column,$oldxchan,$newxchan) { function xchan_change_key($oldx,$newx,$data) { + // TODO: this will need a refactor to eliminate duplicate keys + // E.G. item => [author_xchan, owner_xchan, source_kchan] + // Also: add a test! + $tables = [ 'abook' => 'abook_xchan', 'abconfig' => 'xchan', @@ -227,8 +231,6 @@ function xchan_change_key($oldx,$newx,$data) { 'item' => 'owner_xchan', 'item' => 'author_xchan', 'item' => 'source_xchan', - 'mail' => 'from_xchan', - 'mail' => 'to_xchan', 'shares' => 'share_xchan', 'source' => 'src_channel_xchan', 'source' => 'src_xchan', -- cgit v1.2.3