fix deletion of users which have feed categories

This commit is contained in:
Andrew Dolgov 2008-01-24 18:04:39 +01:00
parent 5a613536c7
commit c29324c7a4
1 changed files with 3 additions and 0 deletions

View File

@ -91,7 +91,10 @@
$ids = split(",", db_escape_string($_GET["ids"])); $ids = split(",", db_escape_string($_GET["ids"]));
foreach ($ids as $id) { foreach ($ids as $id) {
db_query($link, "BEGIN");
db_query($link, "DELETE FROM ttrss_feeds WHERE owner_uid = '$id' AND owner_uid != " . $_SESSION["uid"]);
db_query($link, "DELETE FROM ttrss_users WHERE id = '$id' AND id != " . $_SESSION["uid"]); db_query($link, "DELETE FROM ttrss_users WHERE id = '$id' AND id != " . $_SESSION["uid"]);
db_query($link, "COMMIT");
} }
} }