diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-13 13:08:11 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-13 13:08:11 +0000 |
commit | 0b9e7e0e00273de31fc689a7ade222e9b0b5cbdd (patch) | |
tree | 7660beffd9ce7f0d6bc226b368d3e5410b1d6745 /engine/lib/sites.php | |
parent | 7f7decf9cb9084f6942ae9ea160f2e7c4d4a8b81 (diff) | |
download | elgg-0b9e7e0e00273de31fc689a7ade222e9b0b5cbdd.tar.gz elgg-0b9e7e0e00273de31fc689a7ade222e9b0b5cbdd.tar.bz2 |
Closes #676: Entity subtables now deleted on failed connections.
git-svn-id: https://code.elgg.org/elgg/trunk@2564 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r-- | engine/lib/sites.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index f012b3cb4..bac6021b8 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -293,7 +293,8 @@ if (trigger_elgg_event('update',$entity->type,$entity)) { return $guid; } else { - delete_entity($guid); + $entity->delete(); + //delete_entity($guid); } }
} @@ -306,7 +307,8 @@ if (trigger_elgg_event('create',$entity->type,$entity)) { return $guid; } else { - delete_entity($guid); + $entity->delete(); + //delete_entity($guid); } } } |