diff options
author | sasiflo <redmatrixdev@sasiflo.de> | 2014-04-06 00:34:52 +0200 |
---|---|---|
committer | sasiflo <redmatrixdev@sasiflo.de> | 2014-04-06 00:34:52 +0200 |
commit | 9f54a8f96b7664c82ab9228608970a7ce6bd41a9 (patch) | |
tree | 1034e7a1909c76bff280055508638b820242c9e6 /include/Contact.php | |
parent | 8b0721cf3587a48653a126330217fb4bc32c9ffa (diff) | |
download | volse-hubzilla-9f54a8f96b7664c82ab9228608970a7ce6bd41a9.tar.gz volse-hubzilla-9f54a8f96b7664c82ab9228608970a7ce6bd41a9.tar.bz2 volse-hubzilla-9f54a8f96b7664c82ab9228608970a7ce6bd41a9.zip |
Hope I have repaired the channel admin page.
Channel blocking and deleting was copied from user actions. This was not
done to an end. Hope what I do is enough to enable channel blocking and
deleting the correct way.
On deletion all entities that belong to the channel are deleted. But the
channel itself is just marked as deleted. Do not really understand why
it is done this way.
Diffstat (limited to 'include/Contact.php')
-rw-r--r-- | include/Contact.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Contact.php b/include/Contact.php index 9883c598d..540e1169d 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -263,7 +263,7 @@ function channel_remove($channel_id, $local = true) { q("DELETE FROM `event` WHERE `uid` = %d", intval($channel_id)); q("DELETE FROM `item` WHERE `uid` = %d", intval($channel_id)); q("DELETE FROM `item_id` WHERE `uid` = %d", intval($channel_id)); - q("DELETE FROM `mail` WHERE `uid` = %d", intval($channel_id)); + q("DELETE FROM `mail` WHERE `channel_id` = %d", intval($channel_id)); q("DELETE FROM `notify` WHERE `uid` = %d", intval($channel_id)); q("DELETE FROM `photo` WHERE `uid` = %d", intval($channel_id)); q("DELETE FROM `attach` WHERE `uid` = %d", intval($channel_id)); |