aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-10-20 11:15:06 +0200
committerMario Vavti <mario@mariovavti.com>2022-10-20 11:15:06 +0200
commit53931017b99c6fc77fc7632747e51b06a89b2287 (patch)
tree26357decc1d3a76471863b3f58a0a0455d637e33 /include/items.php
parente9ca17cec14c5a702cc7d656e5206a3c086dd550 (diff)
downloadvolse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.tar.gz
volse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.tar.bz2
volse-hubzilla-53931017b99c6fc77fc7632747e51b06a89b2287.zip
fix php warnings
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;
}