diff options
author | Sem <sembrestels@riseup.net> | 2012-12-05 02:00:20 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-12-05 02:00:20 +0100 |
commit | 3d163edf0f9d4d751ea212c28ffe771db482fe55 (patch) | |
tree | 452b999e54a4686a78a9be736578342d77d8456d /mod | |
parent | b2232139f13b759e8f5ce62def75eaeaa530a5b6 (diff) | |
download | elgg-3d163edf0f9d4d751ea212c28ffe771db482fe55.tar.gz elgg-3d163edf0f9d4d751ea212c28ffe771db482fe55.tar.bz2 |
Avoid groups upgrade returning false.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/upgrades/2011030101.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/groups/upgrades/2011030101.php b/mod/groups/upgrades/2011030101.php index 55edb1a16..3199d76ba 100644 --- a/mod/groups/upgrades/2011030101.php +++ b/mod/groups/upgrades/2011030101.php @@ -40,7 +40,8 @@ function groups_2011030101($topic) { $annotation = $topic->getAnnotations('group_topic_post', 1); if (!$annotation) { // no text for this forum post so we delete (probably caused by #2624) - return $topic->delete(); + $topic->delete(); + return; } $topic->description = $annotation[0]->value; |