aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 28b311021..8a244db2f 100644
--- a/include/items.php
+++ b/include/items.php
@@ -3757,8 +3757,7 @@ function item_expire($uid,$days,$comment_days = 7) {
// don't expire filed items
- $terms = get_terms_oftype($item['term'],TERM_FILE);
- if($terms) {
+ if (isset($item['term']) && get_terms_oftype($item['term'], TERM_FILE)) {
retain_item($item['id']);
continue;
}