fix deletion of users which have feed categories

master
Andrew Dolgov 17 years ago
parent 5a613536c7
commit c29324c7a4

@ -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…
Cancel
Save