From: friendica Date: Sat, 5 May 2012 00:43:47 +0000 (-0700) Subject: workaround to clean up orphaned filetags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d0dd22af570a06016053030fa468f83d14f25f5d;p=friendica.git workaround to clean up orphaned filetags --- diff --git a/include/text.php b/include/text.php index 5d6adaea58..1b5b0afd44 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) );