diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-11-17 16:17:05 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-11-17 16:17:05 +0100 |
commit | 25b089c1a930e41e0d4029aad3fde531e21717e1 (patch) | |
tree | 46740bd0d9c26df1260bd7643c703ceda6863b17 /include | |
parent | 67a9292aaa5246783b70ca3754b31924416d7f08 (diff) | |
download | volse-hubzilla-25b089c1a930e41e0d4029aad3fde531e21717e1.tar.gz volse-hubzilla-25b089c1a930e41e0d4029aad3fde531e21717e1.tar.bz2 volse-hubzilla-25b089c1a930e41e0d4029aad3fde531e21717e1.zip |
fix some errors detected by phpstan
Diffstat (limited to 'include')
-rw-r--r-- | include/xchan.php | 6 |
1 files changed, 4 insertions, 2 deletions
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', |