diff options
Diffstat (limited to 'deactivate.php')
-rw-r--r-- | deactivate.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/deactivate.php b/deactivate.php deleted file mode 100644 index 9b0cd1189..000000000 --- a/deactivate.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/** - * Resets container guids from all groups that aren't subgroups to owner guid - */ - -$groups = elgg_get_entities(array( - 'type' => '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); - } -} |