diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-01-07 09:10:28 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-01-07 09:10:28 +0000 |
commit | 6f95a6af5389b3f3a3affd309ac73f689dee21b8 (patch) | |
tree | 533fd99a0c4bcf164bb664ff6c986bdd03dd9743 /services/tagstatservice.php | |
parent | db6172250228292146706690e2955074626a6ccd (diff) | |
download | semanticscuttle-6f95a6af5389b3f3a3affd309ac73f689dee21b8.tar.gz semanticscuttle-6f95a6af5389b3f3a3affd309ac73f689dee21b8.tar.bz2 |
Bug Fix: delete really all user's data when removing a user
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@221 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/tagstatservice.php')
-rw-r--r-- | services/tagstatservice.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/services/tagstatservice.php b/services/tagstatservice.php index 3a08bc0..9d3ca5d 100644 --- a/services/tagstatservice.php +++ b/services/tagstatservice.php @@ -169,6 +169,18 @@ class TagStatService { $this->db->sql_query($query); } + function deleteTagStatForUser($uId) { + $query = 'DELETE FROM '. $this->getTableName() .' WHERE uId = '. intval($uId); + + if (!($dbresult = & $this->db->sql_query($query))) { + message_die(GENERAL_ERROR, 'Could not delete tag stats', '', __LINE__, + __FILE__, $query, $this->db); + return false; + } + + return true; + } + function deleteAll() { $query = 'TRUNCATE TABLE `'. $this->getTableName() .'`'; $this->db->sql_query($query); |