Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
info
mahara-museum
Commits
e03a29ee
Commit
e03a29ee
authored
Apr 30, 2007
by
Nigel McNie
Committed by
Nigel McNie
Apr 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete records from the user watchlist for a community when the community
is deleted
parent
e5b95621
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
htdocs/contacts/communities/owned.json.php
htdocs/contacts/communities/owned.json.php
+1
-0
No files found.
htdocs/contacts/communities/owned.json.php
View file @
e03a29ee
...
@@ -42,6 +42,7 @@ if ($action == 'delete') {
...
@@ -42,6 +42,7 @@ if ($action == 'delete') {
json_reply
(
'local'
,
get_string
(
'cantdeletecommunitydontown'
));
json_reply
(
'local'
,
get_string
(
'cantdeletecommunitydontown'
));
}
}
db_begin
();
db_begin
();
delete_records
(
'usr_watchlist_community'
,
'community'
,
$id
);
delete_records
(
'view_access_community'
,
'community'
,
$id
);
delete_records
(
'view_access_community'
,
'community'
,
$id
);
delete_records
(
'community_member_invite'
,
'community'
,
$id
);
delete_records
(
'community_member_invite'
,
'community'
,
$id
);
delete_records
(
'community_member_request'
,
'community'
,
$id
);
delete_records
(
'community_member_request'
,
'community'
,
$id
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment