From c29324c7a4d35c6feac3ff7d2557a265e0c4cc35 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 24 Jan 2008 18:04:39 +0100 Subject: [PATCH] fix deletion of users which have feed categories --- modules/pref-users.php | 3 +++ 1 file changed, 3 insertions(+) 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"); } } -- 2.39.5