aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-02 17:58:29 +0000
committerMario <mario@mariovavti.com>2022-02-02 17:58:29 +0000
commit1740ae2104ff734edd45f6c0f1273d561cc4a69c (patch)
treed63c6d59f7f673193e9141b48c48bdee2b7fdbe9 /include/items.php
parentd8372f84339b29ef05f92d452ec196df32087f4a (diff)
downloadvolse-hubzilla-1740ae2104ff734edd45f6c0f1273d561cc4a69c.tar.gz
volse-hubzilla-1740ae2104ff734edd45f6c0f1273d561cc4a69c.tar.bz2
volse-hubzilla-1740ae2104ff734edd45f6c0f1273d561cc4a69c.zip
more PHP 8.1 deprecated warnings
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index e198ea54f..0b33d876d 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1446,7 +1446,7 @@ function activity_sanitise($arr) {
if(is_array($x))
$ret[$k] = activity_sanitise($x);
else
- $ret[$k] = htmlspecialchars($x, ENT_COMPAT, 'UTF-8', false);
+ $ret[$k] = htmlspecialchars((string)$x, ENT_COMPAT, 'UTF-8', false);
}
return $ret;
}
@@ -4438,7 +4438,7 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
);
}
- if(strlen($arr['file'])) {
+ if($arr['file']) {
$sql_extra .= term_query('item',$arr['files'],TERM_FILE);
}