workaround to clean up orphaned filetags

This commit is contained in:
friendica 2012-05-04 17:43:47 -07:00
parent 7c6e8b30b2
commit d0dd22af57
1 changed files with 1 additions and 1 deletions

View File

@ -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)
);