From 698d87d578dfe5d2a794f75003ded834081ca738 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 22 Sep 2020 22:09:51 +0200 Subject: Allow returning a non-string (usually void) again in custom tags --- src/ste/STECore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ste/STECore.php b/src/ste/STECore.php index a53e652..595228b 100644 --- a/src/ste/STECore.php +++ b/src/ste/STECore.php @@ -123,7 +123,7 @@ class STECore throw new RuntimeError("Can not call tag \"$name\": Does not exist."); } } - return call_user_func($this->tags[$name], $this, $params, $sub); + return (string)call_user_func($this->tags[$name], $this, $params, $sub); } catch (RuntimeError $e) { if (!$this->mute_runtime_errors) { return "RuntimeError occurred on tag '$name': " . $e->getMessage(); -- cgit v1.2.3-70-g09d2