]> git.mxchange.org Git - friendica.git/commitdiff
workaround to clean up orphaned filetags
authorfriendica <info@friendica.com>
Sat, 5 May 2012 00:43:47 +0000 (17:43 -0700)
committerfriendica <info@friendica.com>
Sat, 5 May 2012 00:43:47 +0000 (17:43 -0700)
include/text.php

index 5d6adaea58e9466acebdc2bb24db7646175c9b71..1b5b0afd44e0b589eeb00e0c38db2107b1f628b4 100644 (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)
        );