From d0dd22af570a06016053030fa468f83d14f25f5d Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 4 May 2012 17:43:47 -0700 Subject: [PATCH] workaround to clean up orphaned filetags --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) );