From: Philipp Date: Mon, 28 Nov 2022 18:51:56 +0000 (+0100) Subject: [rendertime] Fix empty minimal_time X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3b7d4ce600cade41990986ea76313dfce7787c8c;p=friendica-addons.git [rendertime] Fix empty minimal_time --- diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 8b4478da..3d08a740 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -89,7 +89,7 @@ function rendertime_page_end(App $a, string &$o) if ($profiler->isRendertime()) { $o .= '
';
-			$o .= $profiler->getRendertimeString(DI::config()->get('rendertime', 'minimal_time', 0));
+			$o .= $profiler->getRendertimeString(floatval(DI::config()->get('rendertime', 'minimal_time', 0)));
 			$o .= '
'; } }