aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-22 17:30:49 -0800
committerfriendica <info@friendica.com>2013-12-22 17:30:49 -0800
commita9e225b38af3a79802ee52670842ea1d732e9214 (patch)
treea94d1a03b4f023924740242a4d499d5d585619e9 /mod
parent38df3f640458ddb3d6ddd4055b275c59085f14d0 (diff)
downloadvolse-hubzilla-a9e225b38af3a79802ee52670842ea1d732e9214.tar.gz
volse-hubzilla-a9e225b38af3a79802ee52670842ea1d732e9214.tar.bz2
volse-hubzilla-a9e225b38af3a79802ee52670842ea1d732e9214.zip
issue deleting photos (attached item remained undeleted and became visible, though the photo was gone)
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php2
1 files changed, 1 insertions, 1 deletions
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()),