From: Andrew Dolgov Date: Thu, 24 Jan 2008 17:04:39 +0000 (+0100) Subject: fix deletion of users which have feed categories X-Git-Tag: 1.2.20~63 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c29324c7a4d35c6feac3ff7d2557a265e0c4cc35;p=tt-rss.git fix deletion of users which have feed categories --- diff --git a/modules/pref-users.php b/modules/pref-users.php index 5c94b57b..4ada6c2d 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -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"); } }