From a9e225b38af3a79802ee52670842ea1d732e9214 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 22 Dec 2013 17:30:49 -0800 Subject: issue deleting photos (attached item remained undeleted and became visible, though the photo was gone) --- mod/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/photos.php') diff --git a/mod/photos.php b/mod/photos.php index 63806896b..9e6fcecdb 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -183,7 +183,7 @@ function photos_post(&$a) { intval($page_owner_uid) ); if(count($i)) { - q("UPDATE `item` SET item_restrict = (item_restrict & %d), `edited` = '%s', `changed` = '%s' WHERE `parent_mid` = '%s' AND `uid` = %d", + q("UPDATE `item` SET item_restrict = (item_restrict | %d), `edited` = '%s', `changed` = '%s' WHERE `parent_mid` = '%s' AND `uid` = %d", intval(ITEM_DELETED), dbesc(datetime_convert()), dbesc(datetime_convert()), -- cgit v1.2.3