From 1740ae2104ff734edd45f6c0f1273d561cc4a69c Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 2 Feb 2022 17:58:29 +0000 Subject: more PHP 8.1 deprecated warnings --- include/text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 2e5e728a0..29a2ab3b1 100644 --- a/include/text.php +++ b/include/text.php @@ -846,7 +846,7 @@ function activity_match($haystack,$needle) { if($needle) { foreach($needle as $n) { - if(($haystack === $n) || (strtolower(basename($n)) === strtolower(basename($haystack)))) { + if(($haystack === $n) || (strtolower(basename((string)$n)) === strtolower(basename((string)$haystack)))) { return true; } } -- cgit v1.2.3