aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-11-17 16:17:05 +0100
committerMario Vavti <mario@mariovavti.com>2024-11-17 16:17:05 +0100
commit25b089c1a930e41e0d4029aad3fde531e21717e1 (patch)
tree46740bd0d9c26df1260bd7643c703ceda6863b17 /include
parent67a9292aaa5246783b70ca3754b31924416d7f08 (diff)
downloadvolse-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.php6
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',