]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix deletion of users which have feed categories
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 24 Jan 2008 17:04:39 +0000 (18:04 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 24 Jan 2008 17:04:39 +0000 (18:04 +0100)
modules/pref-users.php

index 5c94b57be50ef0c75a309b77ec08d4ec4c87f50d..4ada6c2d11c7f43c0aa236d5f7791ce020142916 100644 (file)
                                $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");
                                        
                                }
                        }