aboutsummaryrefslogtreecommitdiffstats
path: root/mod/filerm.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/filerm.php')
-rw-r--r--mod/filerm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/filerm.php b/mod/filerm.php
index f70816266..a37e80b31 100644
--- a/mod/filerm.php
+++ b/mod/filerm.php
@@ -18,9 +18,9 @@ function filerm_content(&$a) {
logger('filerm: tag ' . $term . ' item ' . $item_id);
if($item_id && strlen($term)) {
- $r = q("delete from term where uid = %d and type = %d and oid = %d and $term = '%s' limit 1",
+ $r = q("delete from term where uid = %d and type = %d and oid = %d and term = '%s' limit 1",
intval(local_user()),
- intval(($category) ? FILE_CATEGORY : FILE_HASHTAG),
+ intval(($category) ? TERM_CATEGORY : TERM_FILE),
intval($item_id),
dbesc($term)
);