aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Render
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-01-31 09:49:00 +0100
committerMario Vavti <mario@mariovavti.com>2022-01-31 09:49:00 +0100
commit6c808abcfc9a52f8f331f9bfb58a455a90d1970d (patch)
tree34a84ee5674b832daf89a3654de7032dc25f226a /Zotlabs/Render
parentf1822bdfab8a5b997c32faa9c287a3fba1c0729b (diff)
downloadvolse-hubzilla-6c808abcfc9a52f8f331f9bfb58a455a90d1970d.tar.gz
volse-hubzilla-6c808abcfc9a52f8f331f9bfb58a455a90d1970d.tar.bz2
volse-hubzilla-6c808abcfc9a52f8f331f9bfb58a455a90d1970d.zip
PHP 8.1 band-aid
Diffstat (limited to 'Zotlabs/Render')
-rw-r--r--Zotlabs/Render/Comanche.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Render/Comanche.php b/Zotlabs/Render/Comanche.php
index 5ce05243b..230c2455e 100644
--- a/Zotlabs/Render/Comanche.php
+++ b/Zotlabs/Render/Comanche.php
@@ -572,7 +572,7 @@ class Comanche {
require_once('widget/' . trim($name) . '.php');
elseif(file_exists('widget/' . trim($name) . '/' . trim($name) . '.php'))
require_once('widget/' . trim($name) . '/' . trim($name) . '.php');
-
+
if(! function_exists($func)) {
$theme_widget = $func . '.php';
if(theme_include($theme_widget)) {
@@ -640,7 +640,8 @@ class Comanche {
$cnt = preg_match_all("/\[widget=(.*?)\](.*?)\[\/widget\]/ism", $s, $matches, PREG_SET_ORDER);
if($cnt) {
foreach($matches as $mtch) {
- $s = str_replace($mtch[0],$this->widget(trim($mtch[1]),$mtch[2]),$s);
+
+ $s = str_replace((string)$mtch[0], (string)$this->widget(trim((string)$mtch[1]), (string)$mtch[2]), $s);
}
}