fix deletion of users which have feed categories
This commit is contained in:
parent
5a613536c7
commit
c29324c7a4
1 changed files with 3 additions and 0 deletions
|
@ -91,7 +91,10 @@
|
|||
$ids = split(",", db_escape_string($_GET["ids"]));
|
||||
|
||||
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, "COMMIT");
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue