From 5f6dc365a8445a48156b45912827eac39fd64fc5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 16 Mar 2014 21:01:42 -0300 Subject: Squashed 'mod/subgroups/' content from commit 835015b git-subtree-dir: mod/subgroups git-subtree-split: 835015b66b9de6dc6de91ab39f95e1f09b2dbf84 --- deactivate.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 deactivate.php (limited to 'deactivate.php') diff --git a/deactivate.php b/deactivate.php new file mode 100644 index 000000000..9b0cd1189 --- /dev/null +++ b/deactivate.php @@ -0,0 +1,18 @@ + 'group', + 'limit' => 0, +)); + +foreach($groups as $group) { + global $CONFIG; + if (!elgg_instanceof($group->getContainerEntity(), 'group')) { + $query = "UPDATE {$CONFIG->dbprefix}entities set" + . " container_guid=0 where guid={$group->owner_guid}"; + update_data($query); + } +} -- cgit v1.2.3