aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-04 17:43:47 -0700
committerfriendica <info@friendica.com>2012-05-04 17:43:47 -0700
commitd0dd22af570a06016053030fa468f83d14f25f5d (patch)
treeb87ad2f8a56a712cf0fe95dc9570aacea33afc76
parent7c6e8b30b28a3656f536ba338c3b124533fdadb7 (diff)
downloadvolse-hubzilla-d0dd22af570a06016053030fa468f83d14f25f5d.tar.gz
volse-hubzilla-d0dd22af570a06016053030fa468f83d14f25f5d.tar.bz2
volse-hubzilla-d0dd22af570a06016053030fa468f83d14f25f5d.zip
workaround to clean up orphaned filetags
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 5d6adaea5..1b5b0afd4 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1491,7 +1491,7 @@ function file_tag_unsave_file($uid,$item,$file,$cat = false) {
intval($uid)
);
- $r = q("select file from item where uid = %d " . file_tag_file_query('item',$file,(($cat) ? 'category' : 'file')),
+ $r = q("select file from item where uid = %d and deleted = 0 " . file_tag_file_query('item',$file,(($cat) ? 'category' : 'file')),
intval($uid)
);