]> git.mxchange.org Git - friendica.git/commitdiff
We shouldn't cascade this deletion as well (#5558)
authorMichael Vogel <icarus@dabo.de>
Sun, 5 Aug 2018 09:02:36 +0000 (11:02 +0200)
committerHypolite Petovan <mrpetovan@eml.cc>
Sun, 5 Aug 2018 09:02:36 +0000 (11:02 +0200)
src/Model/Item.php

index f2b227a0dabded5ce3b38b2580b76443f7056894..3fe69fb12793dbce4a62710d6ccd0ec5ec1ba3d1 100644 (file)
@@ -1065,7 +1065,7 @@ class Item extends BaseObject
                // When the permission set will be used in photo and events as well,
                // this query here needs to be extended.
                if (!empty($item['psid']) && !DBA::exists('item', ['psid' => $item['psid'], 'deleted' => false])) {
-                       DBA::delete('permissionset', ['id' => $item['psid']]);
+                       DBA::delete('permissionset', ['id' => $item['psid']], ['cascade' => false]);
                }
 
                // If it's the parent of a comment thread, kill all the kids